forked from mirror/open-golang
Merge pull request #1 from grymoire7/master
Corrected a few typos. Added invalid url for TestStartWith as it seems ...
This commit is contained in:
commit
a3c5276dd4
|
@ -14,7 +14,7 @@ func TestRun(t *testing.T) {
|
||||||
input = "xxxxxxxxxxxxxxx"
|
input = "xxxxxxxxxxxxxxx"
|
||||||
err = Run(input)
|
err = Run(input)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Errorf("Run(\"%s\") did not through an error as expected", input)
|
t.Errorf("Run(\"%s\") did not throw an error as expected", input)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ func TestRunWith(t *testing.T) {
|
||||||
app = "xxxxxxxxxxxxxxx"
|
app = "xxxxxxxxxxxxxxx"
|
||||||
err = RunWith(input, app)
|
err = RunWith(input, app)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Errorf("RunWith(\"%s\", \"%s\") did not through an error as expected", input, app)
|
t.Errorf("RunWith(\"%s\", \"%s\") did not throw an error as expected", input, app)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ func TestStartWith(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// shouldn't error
|
// shouldn't error
|
||||||
app = "xxxxxxxxxxxxxxx"
|
input = "[<Invalid URL>]"
|
||||||
err = StartWith(input, app)
|
err = StartWith(input, app)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("StartWith(\"%s\", \"%s\") shouldn't even fail on invalid input: %s", input, app, err)
|
t.Errorf("StartWith(\"%s\", \"%s\") shouldn't even fail on invalid input: %s", input, app, err)
|
||||||
|
|
Loading…
Reference in New Issue