Skip to content

Commit

Permalink
Merge pull request #238 from ethereum/vmtester-reorder
Browse files Browse the repository at this point in the history
vmtester: reorder tests to have the simple ones first
  • Loading branch information
axic authored Apr 24, 2019
2 parents 49c6d2c + c6bdf32 commit feecf65
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/vmtester/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ TEST_F(evmc_vm_test, abi_version_match)
ASSERT_EQ(vm->abi_version, EVMC_ABI_VERSION);
}

TEST_F(evmc_vm_test, name)
{
ASSERT_NE(vm->name, nullptr);
EXPECT_GT(std::strlen(vm->name), 0) << "VM name cannot be empty";
}

TEST_F(evmc_vm_test, version)
{
ASSERT_NE(vm->version, nullptr);
EXPECT_GT(std::strlen(vm->version), 0) << "VM name cannot be empty";
}

TEST_F(evmc_vm_test, execute)
{
evmc_context* context = example_host_create_context();
Expand Down Expand Up @@ -78,18 +90,6 @@ TEST_F(evmc_vm_test, set_option_unknown_value)
}
}

TEST_F(evmc_vm_test, name)
{
ASSERT_NE(vm->name, nullptr);
EXPECT_GT(std::strlen(vm->name), 0) << "VM name cannot be empty";
}

TEST_F(evmc_vm_test, version)
{
ASSERT_NE(vm->version, nullptr);
EXPECT_GT(std::strlen(vm->version), 0) << "VM name cannot be empty";
}

TEST_F(evmc_vm_test, set_tracer)
{
static const auto tracer_callback =
Expand Down

0 comments on commit feecf65

Please sign in to comment.