-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added test files for range and highlighting support
- Loading branch information
Glowman554
committed
Jul 30, 2024
1 parent
53f9d2b
commit beaa6d4
Showing
3 changed files
with
23 additions
and
1 deletion.
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,17 @@ | ||
$include <std.fl> | ||
|
||
|
||
function spark(int argc, str[] argv) -> int { | ||
int a = 0; | ||
int b = 3; | ||
|
||
range a .. b as i up { | ||
printi(i); | ||
} | ||
|
||
range b .. a as j down { | ||
printi(j); | ||
} | ||
|
||
return 0; | ||
} |
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,5 @@ | ||
{ | ||
"arguments": [], | ||
"output": ["0", "1", "2", "3", "2", "1"], | ||
"should_fail": false | ||
} |
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