mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Issue #18, but syntax is: foreach (variable) => (expression) {...}.
This commit is contained in:
@@ -40,7 +40,7 @@ func TestTokenizerFor(t *testing.T) {
|
||||
|
||||
func TestTokenizerForach(t *testing.T) {
|
||||
got := getTokens(t, "test/tokenizer_foreach.asl")
|
||||
want := []string{"foreach", "allUnits", "{", "}"}
|
||||
want := []string{"foreach", "unit", "=", ">", "allUnits", "{", "}"}
|
||||
|
||||
compareLength(t, &got, &want)
|
||||
compareTokens(t, &got, &want)
|
||||
|
||||
Reference in New Issue
Block a user