Browse Source

Random Code: Style

cl-refactor
Dimitry 10 years ago
parent
commit
b429e1cfde
  1. 5
      test/fuzzTesting/createRandomStateTest.cpp
  2. 15
      test/libethereum/blockchain.cpp

5
test/fuzzTesting/createRandomStateTest.cpp

@ -198,8 +198,6 @@ void doRandomCodeAlgo()
cout << json_spirit::write_string(v, true);
}
void doStateTests(json_spirit::mValue& _v)
{
eth::VMFactory::setKind(eth::VMKind::Interpreter);
@ -238,6 +236,3 @@ void doStateTests(json_spirit::mValue& _v)
#endif
}
}

15
test/libethereum/blockchain.cpp

@ -811,19 +811,4 @@ BOOST_AUTO_TEST_CASE(userDefinedFile)
dev::test::userDefinedTest(dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(rndCode)
{
std::string code;
cerr << "Testing Random Code: ";
try
{
code = dev::test::RandomCode::generate(10);
}
catch(...)
{
BOOST_ERROR("Exception thrown when generating random code!");
}
cerr << code;
}
BOOST_AUTO_TEST_SUITE_END()

Loading…
Cancel
Save