Browse Source

Merge pull request #2785 from LefterisJP/fix_sol_test_fail

Fix an error in a type resolution SOL test
cl-refactor
chriseth 10 years ago
parent
commit
b687323196
  1. 2
      test/libsolidity/SolidityNameAndTypeResolution.cpp

2
test/libsolidity/SolidityNameAndTypeResolution.cpp

@ -1906,7 +1906,7 @@ BOOST_AUTO_TEST_CASE(reference_compare_operators)
)"; )";
BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode1), TypeError); BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode1), TypeError);
char const* sourceCode2 = R"( char const* sourceCode2 = R"(
contract test { struct s {uint a;}; s x; s y; function() { x == y; } } contract test { struct s {uint a;} s x; s y; function() { x == y; } }
)"; )";
BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode2), TypeError); BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode2), TypeError);
} }

Loading…
Cancel
Save