From 3c577aedb88337775be37d564b6ebe1a3d74c8c3 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 12 Nov 2016 11:12:11 +0100 Subject: Converted existing test to catch framework (nw) --- tests/emu/attotime.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/emu/attotime.cpp') 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()); } -- cgit v1.2.3-70-g09d2