test regex for builtin string typecheck

This commit is contained in:
Adrien Marquès 2020-03-01 21:41:20 +01:00
parent 77dbc5663b
commit 53eaec0c50
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 12 additions and 0 deletions

View File

@ -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},