Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Oct 13, 2015
1 parent 2da2bad commit b5101a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flags_test.go
Expand Up @@ -22,7 +22,7 @@ func TestNoBool(t *testing.T) {
f := fg.Flag("b", "").Default("true")
b := f.Bool()
fg.init()
tokens := tokenize([]string{"--no-b"})
tokens := tokenize([]string{"--no-b"}, false)
_, err := fg.parse(tokens)
assert.NoError(t, err)
assert.False(t, *b)
Expand All @@ -33,7 +33,7 @@ func TestNegateNonBool(t *testing.T) {
f := fg.Flag("b", "")
f.Int()
fg.init()
tokens := tokenize([]string{"--no-b"})
tokens := tokenize([]string{"--no-b"}, false)
_, err := fg.parse(tokens)
assert.Error(t, err)
}
Expand Down
2 changes: 1 addition & 1 deletion parser_test.go
Expand Up @@ -28,7 +28,7 @@ func TestParserExpandFromFile(t *testing.T) {
func TestParseContextPush(t *testing.T) {
app := New("test", "")
app.Command("foo", "").Command("bar", "")
c := tokenize([]string{"foo", "bar"})
c := tokenize([]string{"foo", "bar"}, false)
a := c.Next()
assert.Equal(t, TokenArg, a.Type)
b := c.Next()
Expand Down

0 comments on commit b5101a1

Please sign in to comment.