Compare commits
2 Commits
77dbc5663b
...
503f01bddd
Author | SHA1 | Date |
---|---|---|
Adrien Marquès | 503f01bddd | |
Adrien Marquès | 53eaec0c50 |
|
@ -41,6 +41,18 @@ func TestString_AvailableTypes(t *testing.T) {
|
||||||
{"string(1 )", false},
|
{"string(1 )", false},
|
||||||
{"string( 1 )", false},
|
{"string( 1 )", false},
|
||||||
|
|
||||||
|
{"string()", false},
|
||||||
|
{"string(a)", false},
|
||||||
|
{"string(-1)", false},
|
||||||
|
|
||||||
|
{"string(,)", false},
|
||||||
|
{"string(1,b)", false},
|
||||||
|
{"string(a,b)", false},
|
||||||
|
{"string(a,1)", false},
|
||||||
|
{"string(-1,1)", false},
|
||||||
|
{"string(1,-1)", false},
|
||||||
|
{"string(-1,-1)", false},
|
||||||
|
|
||||||
{"string(1,2)", true},
|
{"string(1,2)", true},
|
||||||
{"string(1, 2)", true},
|
{"string(1, 2)", true},
|
||||||
{"string(1, 2)", false},
|
{"string(1, 2)", false},
|
||||||
|
|
|
@ -96,6 +96,11 @@ func TestUint_Values(t *testing.T) {
|
||||||
// strane offset because of how precision works
|
// strane offset because of how precision works
|
||||||
{fmt.Sprintf("%f", float64(math.MaxUint64+1024*3)), false},
|
{fmt.Sprintf("%f", float64(math.MaxUint64+1024*3)), false},
|
||||||
|
|
||||||
|
{[]byte(fmt.Sprintf("%d", math.MaxInt64)), true},
|
||||||
|
{[]byte(fmt.Sprintf("%d", uint(math.MaxUint64))), true},
|
||||||
|
// strane offset because of how precision works
|
||||||
|
{[]byte(fmt.Sprintf("%f", float64(math.MaxUint64+1024*3))), false},
|
||||||
|
|
||||||
{"string", false},
|
{"string", false},
|
||||||
{[]byte("bytes"), false},
|
{[]byte("bytes"), false},
|
||||||
{-0.1, false},
|
{-0.1, false},
|
||||||
|
|
Loading…
Reference in New Issue