This commit is contained in:
ManDude
2022-04-16 23:48:35 +01:00
parent 9100725802
commit f3d871f60a
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -260,10 +260,10 @@ void FormRegressionTest::test(const std::string& code,
auto ts = dts->parse_type_spec(type);
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 actual_form =
auto& actual_form =
pretty_print::get_pretty_printer_reader()
.read_from_string(test->func.ir2.top_form->to_form(test->func.ir2.env).print(), false)
.as_pair()
@@ -322,4 +322,4 @@ void FormRegressionTest::test_with_stack_structures(const std::string& code,
}
std::unique_ptr<InstructionParser> FormRegressionTest::parser;
std::unique_ptr<DecompilerTypeSystem> FormRegressionTest::dts;
std::unique_ptr<DecompilerTypeSystem> FormRegressionTest::dts;