summaryrefslogtreecommitdiffstatshomepage
path: root/tests/emu/attotime.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-03-18 13:38:01 -0400
committer Brad Hughes <bradhugh@outlook.com>2016-03-18 13:38:01 -0400
commitce5bd9a3d22e5200c4566e98f0cfb0877c2892c0 (patch)
tree01a8bacfae3f19293b01f83a13c3413ba2de53d6 /tests/emu/attotime.cpp
parent603d5509df7e3d0455d048ab5ec71397183ac44c (diff)
parent708614a9d0508feb6044ebe4f03930147a817199 (diff)
Merge branch 'master' of https://github.com/mamedev/mame.git
Diffstat (limited to 'tests/emu/attotime.cpp')
-rw-r--r--tests/emu/attotime.cpp10
1 files changed, 10 insertions, 0 deletions
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());
+}