-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added even more language tests (#3137)
- Loading branch information
1 parent
8494519
commit 344d0b2
Showing
17 changed files
with
299 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
var myObjWithSpecialChars = { | ||
'$special\tchars!': true | ||
normalKey: 'val' | ||
} | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "var"], | ||
" myObjWithSpecialChars ", | ||
["operator", "="], | ||
["punctuation", "{"], | ||
|
||
["property", "'$special\\tchars!'"], | ||
["operator", ":"], | ||
["boolean", "true"], | ||
|
||
["property", "normalKey"], | ||
["operator", ":"], | ||
["string", "'val'"], | ||
|
||
["punctuation", "}"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
assert() | ||
defined() | ||
foreach() | ||
import() | ||
pool() | ||
print() | ||
template() | ||
tool() | ||
toolchain() | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["builtin-function", "assert"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "defined"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "foreach"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "import"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "pool"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "print"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "template"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "tool"], | ||
["punctuation", "("], | ||
["punctuation", ")"], | ||
|
||
["builtin-function", "toolchain"], | ||
["punctuation", "("], | ||
["punctuation", ")"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
current_cpu | ||
current_os | ||
current_toolchain | ||
default_toolchain | ||
host_cpu | ||
host_os | ||
root_build_dir | ||
root_gen_dir | ||
root_out_dir | ||
target_cpu | ||
target_gen_dir | ||
target_os | ||
target_out_dir | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["constant", "current_cpu"], | ||
["constant", "current_os"], | ||
["constant", "current_toolchain"], | ||
["constant", "default_toolchain"], | ||
["constant", "host_cpu"], | ||
["constant", "host_os"], | ||
["constant", "root_build_dir"], | ||
["constant", "root_gen_dir"], | ||
["constant", "root_out_dir"], | ||
["constant", "target_cpu"], | ||
["constant", "target_gen_dir"], | ||
["constant", "target_os"], | ||
["constant", "target_out_dir"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if | ||
else | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "if"], | ||
["keyword", "else"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FooInput | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["atom-input", "FooInput"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mutation foo {} | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "mutation"], | ||
["definition-mutation", "foo"], | ||
["punctuation", "{"], | ||
["punctuation", "}"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Boolean | ||
Float | ||
ID | ||
Int | ||
String | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["scalar", "Boolean"], | ||
["scalar", "Float"], | ||
["scalar", "ID"], | ||
["scalar", "Int"], | ||
["scalar", "String"] | ||
] |
35 changes: 35 additions & 0 deletions
35
tests/languages/javascript!+js-extras/control-flow_feature.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
await | ||
break | ||
catch | ||
continue | ||
do | ||
else | ||
finally | ||
for | ||
if | ||
return | ||
switch | ||
throw | ||
try | ||
while | ||
yield | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "await"], | ||
["keyword", "break"], | ||
["keyword", "catch"], | ||
["keyword", "continue"], | ||
["keyword", "do"], | ||
["keyword", "else"], | ||
["keyword", "finally"], | ||
["keyword", "for"], | ||
["keyword", "if"], | ||
["keyword", "return"], | ||
["keyword", "switch"], | ||
["keyword", "throw"], | ||
["keyword", "try"], | ||
["keyword", "while"], | ||
["keyword", "yield"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
null | ||
undefined | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["keyword", "null"], | ||
["keyword", "undefined"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
> 1 | ||
1 | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["punctuation", ">"], ["number", "1"], | ||
["output", "1"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
foo() | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["function", "foo"], | ||
["punctuation", "("], | ||
["punctuation", ")"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
__ | ||
x__ | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["blank", "__"], | ||
["blank", "x__"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Global` | ||
System`Foo | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["context", "Global`"], | ||
["context", "System`Foo"] | ||
] |
Oops, something went wrong.