From 45f20a43c76dd2b8a1379a8586e73ed61c70146f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 18 Mar 2016 14:00:16 +0100 Subject: added attotime test for balrog (nw) --- tests/emu/attotime.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/emu/attotime.cpp (limited to 'tests/emu/attotime.cpp') diff --git a/tests/emu/attotime.cpp b/tests/emu/attotime.cpp new file mode 100644 index 00000000000..7d170c32abe --- /dev/null +++ b/tests/emu/attotime.cpp @@ -0,0 +1,10 @@ +#include "gtest/gtest.h" +#include "emucore.h" +#include "eminline.h" +#include "attotime.h" + +TEST(attotime,as_attoseconds) +{ + attotime value = attotime::from_seconds(1); + EXPECT_EQ(1000000000000000000, value.as_attoseconds()); +} -- cgit v1.2.3-70-g09d2