mirror of
https://github.com/open-goal/jak-project
synced 2026-09-08 20:02:39 -04:00
im bored.
This commit is contained in:
@@ -293,11 +293,11 @@ void FormRegressionTest::test_final_function(
|
||||
settings.do_expressions = true;
|
||||
auto test = make_function(code, ts, settings);
|
||||
ASSERT_TRUE(test);
|
||||
auto expected_form =
|
||||
auto& expected_form =
|
||||
pretty_print::get_pretty_printer_reader().read_from_string(expected, false).as_pair()->car;
|
||||
ASSERT_TRUE(test->func.ir2.top_form);
|
||||
auto final = final_defun_out(test->func, test->func.ir2.env, *dts);
|
||||
auto actual_form =
|
||||
auto& actual_form =
|
||||
pretty_print::get_pretty_printer_reader().read_from_string(final, false).as_pair()->car;
|
||||
if (expected_form != actual_form) {
|
||||
printf("Got:\n%s\n\nExpected\n%s\n", pretty_print::to_string(actual_form).c_str(),
|
||||
|
||||
@@ -21,9 +21,9 @@ class DataDecompTest : public ::testing::Test {
|
||||
static void TearDownTestCase() { dts.reset(); }
|
||||
|
||||
void check_forms_equal(const std::string& actual, const std::string& expected) {
|
||||
auto expected_form =
|
||||
auto& expected_form =
|
||||
pretty_print::get_pretty_printer_reader().read_from_string(expected, false).as_pair()->car;
|
||||
auto actual_form =
|
||||
auto& actual_form =
|
||||
pretty_print::get_pretty_printer_reader().read_from_string(actual, false).as_pair()->car;
|
||||
if (expected_form != actual_form) {
|
||||
printf("Got:\n%s\n\nExpected\n%s\n", pretty_print::to_string(actual_form).c_str(),
|
||||
@@ -405,4 +405,4 @@ TEST_F(DataDecompTest, ReverseArtExt) {
|
||||
input.offset = 108;
|
||||
result = dts->ts.reverse_field_multi_lookup(input);
|
||||
EXPECT_EQ(result.results.at(0).tokens.at(2).print(), "type");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user