summaryrefslogtreecommitdiffstatshomepage
path: root/tests/emu/attotime.cpp
diff options
context:
space:
mode:
author Antonio Giner <estudio@antonioginer.com>2016-03-18 22:41:17 +0100
committer Antonio Giner <estudio@antonioginer.com>2016-03-18 22:41:17 +0100
commite39daaf5bdcf21d64abf239e1133963643dc6df1 (patch)
tree1f1b5f333e84bf056ce82c27bebdbad933f26c0d /tests/emu/attotime.cpp
parent421656e108e7091ee9e1b14c84f0a3f6efc2ad2e (diff)
parentb79020559ea3617b2d6bd4c92041d314045e2938 (diff)
Merge remote-tracking branch 'refs/remotes/mamedev/master'
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());
+}