diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:50:58 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:53:27 +0100 |
| commit | 91664defe0a75da15661a37a7f585b0c8523bf4e (patch) | |
| tree | 8d7133037ce477c00ba0408d3f0892e0a8b5744d /src/pkg/flag/flag_test.go | |
| parent | ac2d3c9eb73a2d23848c55c3171d8ff6dd0feed9 (diff) | |
| download | golang-91664defe0a75da15661a37a7f585b0c8523bf4e.tar.gz | |
Imported Upstream version 2011.02.15
Diffstat (limited to 'src/pkg/flag/flag_test.go')
| -rw-r--r-- | src/pkg/flag/flag_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/flag/flag_test.go b/src/pkg/flag/flag_test.go index b91a8b567..30a21e61a 100644 --- a/src/pkg/flag/flag_test.go +++ b/src/pkg/flag/flag_test.go @@ -106,7 +106,7 @@ func TestParse(t *testing.T) { "-bool", "-bool2=true", "--int", "22", - "--int64", "23", + "--int64", "0x23", "-uint", "24", "--uint64", "25", "-string", "hello", @@ -125,8 +125,8 @@ func TestParse(t *testing.T) { if *intFlag != 22 { t.Error("int flag should be 22, is ", *intFlag) } - if *int64Flag != 23 { - t.Error("int64 flag should be 23, is ", *int64Flag) + if *int64Flag != 0x23 { + t.Error("int64 flag should be 0x23, is ", *int64Flag) } if *uintFlag != 24 { t.Error("uint flag should be 24, is ", *uintFlag) |
