test regex for builtin string typecheck
This commit is contained in:
parent
98878eb127
commit
8fbe3dc178
|
@ -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