diff options
author | 2016-11-12 11:12:11 +0100 | |
---|---|---|
committer | 2016-11-12 11:12:11 +0100 | |
commit | 3c577aedb88337775be37d564b6ebe1a3d74c8c3 (patch) | |
tree | c326df51d5621310a595f5df6303a722a61fbe3c /tests/emu/attotime.cpp | |
parent | be98f6b83acf489daefe604e238e4657940b1e64 (diff) |
Converted existing test to catch framework (nw)
Diffstat (limited to 'tests/emu/attotime.cpp')
-rw-r--r-- | tests/emu/attotime.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/emu/attotime.cpp b/tests/emu/attotime.cpp index 7d170c32abe..e37954b249f 100644 --- a/tests/emu/attotime.cpp +++ b/tests/emu/attotime.cpp @@ -1,10 +1,11 @@ -#include "gtest/gtest.h" +#include "catch.hpp" + #include "emucore.h" #include "eminline.h" #include "attotime.h" -TEST(attotime,as_attoseconds) +TEST_CASE("convert 1 sec to attotime", "[emu]") { attotime value = attotime::from_seconds(1); - EXPECT_EQ(1000000000000000000, value.as_attoseconds()); + REQUIRE(1000000000000000000 == value.as_attoseconds()); } |