mirror of
https://github.com/open-goal/jak-project
synced 2026-09-04 10:41:44 -04:00
[goalc] fix mod bug and add div tests (#1296)
* fix mod bug and add div tests * update changelog
This commit is contained in:
@@ -289,3 +289,12 @@ TEST_F(ArithmeticTests, LogicalOperators) {
|
||||
TEST_F(ArithmeticTests, Comparison) {
|
||||
runner->run_static_test(env, testCategory, "signed-int-compare.static.gc", {"12\n"});
|
||||
}
|
||||
|
||||
TEST_F(ArithmeticTests, DivideSigns) {
|
||||
runner->run_static_test(env, testCategory, "divide-signs.static.gc",
|
||||
{"fffffffffffffffb 7ffffffffffffffb fffffffffffffffd 55555552\n0\n"});
|
||||
}
|
||||
|
||||
TEST_F(ArithmeticTests, ModUnsigned) {
|
||||
runner->run_static_test(env, testCategory, "mod-unsigned.static.gc", {"ffffffffffffffff 5\n0\n"});
|
||||
}
|
||||
Reference in New Issue
Block a user