[yul-phaser] Require specifying weights for Program::codeSize()

This commit is contained in:
Kamil Śliwak
2020-05-20 16:47:23 +02:00
parent d199fc537b
commit 40dfac7683
10 changed files with 76 additions and 52 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ BOOST_AUTO_TEST_CASE(codeSize)
CharStream sourceStream(sourceCode, current_test_case().p_name);
Program program = get<Program>(Program::load(sourceStream));
BOOST_TEST(program.codeSize() == CodeSize::codeSizeIncludingFunctions(program.ast()));
BOOST_TEST(program.codeSize(CodeWeights{}) == CodeSize::codeSizeIncludingFunctions(program.ast()));
}
BOOST_AUTO_TEST_SUITE_END()