test regex for builtin string typecheck
This commit is contained in:
parent
77dbc5663b
commit
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},
|
||||||
|
|
Loading…
Reference in New Issue