mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Added dictionary key mustfail test
This commit is contained in:
7
test/scripts/mustfail/declare-types-dictionary-key.toy
Normal file
7
test/scripts/mustfail/declare-types-dictionary-key.toy
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
var t = astype [string:int];
|
||||||
|
var dict: t = ["one": 1, "two": 2, 3:4];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
print "All good";
|
||||||
@@ -128,7 +128,8 @@ int main() {
|
|||||||
//run each file in tests/scripts/
|
//run each file in tests/scripts/
|
||||||
char* filenames[] = {
|
char* filenames[] = {
|
||||||
"declare-types-array.toy",
|
"declare-types-array.toy",
|
||||||
"declare-types-dictionary.toy",
|
"declare-types-dictionary-key.toy",
|
||||||
|
"declare-types-dictionary-value.toy",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user