mirror of
https://github.com/open-goal/jak-project
synced 2026-05-25 15:25:31 -04:00
[decompiler] Jak 2 modifications, new all-types code (#1553)
* temp * look at old game types * clean up
This commit is contained in:
@@ -15,7 +15,7 @@ TEST_F(FormRegressionTest, ExprTruncate) {
|
||||
" daddu sp, sp, r0";
|
||||
std::string type = "(function float float)";
|
||||
std::string expected = "(the float (the int arg0))";
|
||||
test_with_expr(func, type, expected);
|
||||
test_with_expr_jak1(func, type, expected);
|
||||
}
|
||||
|
||||
TEST_F(FormRegressionTest, ExprIntegralP) {
|
||||
@@ -37,7 +37,7 @@ TEST_F(FormRegressionTest, ExprIntegralP) {
|
||||
" daddu sp, sp, r0";
|
||||
std::string type = "(function float float)";
|
||||
std::string expected = "(the-as float (= (the float (the int arg0)) arg0))";
|
||||
test_with_expr(func, type, expected);
|
||||
test_with_expr_jak1(func, type, expected);
|
||||
}
|
||||
|
||||
TEST_F(FormRegressionTest, ExprFractionalPart) {
|
||||
@@ -55,7 +55,7 @@ TEST_F(FormRegressionTest, ExprFractionalPart) {
|
||||
" daddu sp, sp, r0";
|
||||
std::string type = "(function float float)";
|
||||
std::string expected = "(- arg0 (the float (the int arg0)))";
|
||||
test_with_expr(func, type, expected);
|
||||
test_with_expr_jak1(func, type, expected);
|
||||
}
|
||||
|
||||
TEST_F(FormRegressionTest, ExprSeek) {
|
||||
@@ -103,5 +103,5 @@ TEST_F(FormRegressionTest, ExprSeek) {
|
||||
" (else (- arg0 arg2))\n"
|
||||
" )\n"
|
||||
" )";
|
||||
test_with_expr(func, type, expected);
|
||||
test_with_expr_jak1(func, type, expected);
|
||||
}
|
||||
Reference in New Issue
Block a user