-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This starts moving some types of tests to a muse-executed test suite. This suite executor has benefits over the rsn one because the rsn one can't track the actual line numbers to report errors when working on the test suite or changes that are breaking tests. The new runner is able to accurately map the line numbers, allowing Ctrl+Click in VS Code to just work. This goes as far as reporting stack traces of exceptions. The runner needs some more features to be able to support all of what the rsn runner currently does, but dogfooding the language with the test suite is a clear win.
- Loading branch information
Showing
13 changed files
with
438 additions
and
222 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
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
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,22 @@ | ||
$case( | ||
var: r#" | ||
var a = 1; | ||
a = 2; | ||
$assert(a == 2); | ||
"# | ||
); | ||
$case( | ||
map_obj: r#" | ||
let a = {,}; | ||
a.c = 2 + (a.b = 1); | ||
$assert(a.b + a.c == 4); | ||
"# | ||
); | ||
$case( | ||
let_match: r#" | ||
let (a, b) = (1, 2); | ||
$assert(a + b == 3); | ||
"# | ||
); |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
$case( | ||
block: r#"$assert({ 1; 2 } == 2)"# | ||
); | ||
$case( | ||
labeled_block: r#" | ||
let result = @label: { | ||
break @label 42; | ||
}; | ||
$assert(result == 42); | ||
"# | ||
) |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
$case( | ||
chain_range: "let true = 1 < 2 < 3", | ||
); | ||
|
||
$case( | ||
chain_range_short_circuit: r#"1 < 0 < nonsense"# | ||
); | ||
|
||
$case( | ||
chain_range_long: r#"$assert(1 < 3 > 2 < 4 > 1 < 10 > 2)"#, | ||
); | ||
|
||
$case( | ||
int_float: r#"$assert(1 == 1.0)"#, | ||
); | ||
$case(int_bool: r#"$assert(1 == true)"#); | ||
$case(float_bool: r#"$assert(1.0 == true)"#); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.