Skip to content

Commit

Permalink
Added tests for uninitialized locals and empty blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Aug 24, 2020
1 parent 4d00273 commit 7f9f3c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/trufflesom/tests/BasicInterpreterTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public static Iterable<Object[]> data() {
{"Blocks", "testArg2", 77, Long.class},
{"Blocks", "testArgAndLocal", 8, Long.class},
{"Blocks", "testArgAndContext", 8, Long.class},
{"Blocks", "testEmptyZeroArg", 1, Long.class},
{"Blocks", "testEmptyOneArg", 1, Long.class},
{"Blocks", "testEmptyTwoArg", 1, Long.class},

{"Return", "testReturnSelf", "Return", SClass.class},
{"Return", "testReturnSelfImplicitly", "Return", SClass.class},
Expand Down Expand Up @@ -117,10 +120,12 @@ public static Iterable<Object[]> data() {

{"Regressions", "testSymbolEquality", 1, Long.class},
{"Regressions", "testSymbolReferenceEquality", 1, Long.class},
{"Regressions", "testUninitializedLocal", 1, Long.class},
{"Regressions", "testUninitializedLocalInBlock", 1, Long.class},

{"BinaryOperation", "test", 3 + 8, Long.class},

{"NumberOfTests", "numberOfTests", 52, Long.class}
{"NumberOfTests", "numberOfTests", 57, Long.class}
});
}

Expand Down

0 comments on commit 7f9f3c5

Please sign in to comment.