success(text) -> CHECK_SUCCESS(text)

success(text) does not assert the result. Use CHECK_SUCCESS macro.
This commit is contained in:
Kwang Yul Seo 2017-11-22 23:06:12 +09:00
parent ff229ab05a
commit 4876c58f91

View File

@ -1038,7 +1038,7 @@ BOOST_AUTO_TEST_CASE(function_modifier_double_invocation)
modifier mod(uint a) { if (a > 0) _; } modifier mod(uint a) { if (a > 0) _; }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(base_constructor_double_invocation) BOOST_AUTO_TEST_CASE(base_constructor_double_invocation)
@ -5690,7 +5690,7 @@ BOOST_AUTO_TEST_CASE(constructible_internal_constructor)
function D() public { } function D() public { }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(return_structs) BOOST_AUTO_TEST_CASE(return_structs)
@ -5703,7 +5703,7 @@ BOOST_AUTO_TEST_CASE(return_structs)
} }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(return_recursive_structs) BOOST_AUTO_TEST_CASE(return_recursive_structs)
@ -5753,7 +5753,7 @@ BOOST_AUTO_TEST_CASE(address_checksum_type_deduction)
} }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(invalid_address_checksum) BOOST_AUTO_TEST_CASE(invalid_address_checksum)
@ -5896,7 +5896,7 @@ BOOST_AUTO_TEST_CASE(interface)
interface I { interface I {
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(interface_constructor) BOOST_AUTO_TEST_CASE(interface_constructor)
@ -5917,7 +5917,7 @@ BOOST_AUTO_TEST_CASE(interface_functions)
function f(); function f();
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(interface_function_bodies) BOOST_AUTO_TEST_CASE(interface_function_bodies)
@ -5939,7 +5939,7 @@ BOOST_AUTO_TEST_CASE(interface_function_external)
function f() external; function f() external;
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(interface_function_public) BOOST_AUTO_TEST_CASE(interface_function_public)
@ -5980,7 +5980,7 @@ BOOST_AUTO_TEST_CASE(interface_events)
event E(); event E();
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(interface_inheritance) BOOST_AUTO_TEST_CASE(interface_inheritance)
@ -6023,7 +6023,7 @@ BOOST_AUTO_TEST_CASE(interface_function_parameters)
function f(uint a) public returns (bool); function f(uint a) public returns (bool);
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(interface_enums) BOOST_AUTO_TEST_CASE(interface_enums)
@ -6047,7 +6047,7 @@ BOOST_AUTO_TEST_CASE(using_interface)
} }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(using_interface_complex) BOOST_AUTO_TEST_CASE(using_interface_complex)
@ -6064,7 +6064,7 @@ BOOST_AUTO_TEST_CASE(using_interface_complex)
} }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(warn_about_throw) BOOST_AUTO_TEST_CASE(warn_about_throw)
@ -6123,7 +6123,7 @@ BOOST_AUTO_TEST_CASE(pure_statement_check_for_regular_for_loop)
} }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(warn_multiple_storage_storage_copies) BOOST_AUTO_TEST_CASE(warn_multiple_storage_storage_copies)
@ -6239,7 +6239,7 @@ BOOST_AUTO_TEST_CASE(warn_unused_function_parameter)
} }
} }
)"; )";
success(text); CHECK_SUCCESS(text);
} }
BOOST_AUTO_TEST_CASE(warn_unused_return_parameter) BOOST_AUTO_TEST_CASE(warn_unused_return_parameter)