diff options
author | 2016-03-18 13:38:01 -0400 | |
---|---|---|
committer | 2016-03-18 13:38:01 -0400 | |
commit | ce5bd9a3d22e5200c4566e98f0cfb0877c2892c0 (patch) | |
tree | 01a8bacfae3f19293b01f83a13c3413ba2de53d6 /tests/emu/attotime.cpp | |
parent | 603d5509df7e3d0455d048ab5ec71397183ac44c (diff) | |
parent | 708614a9d0508feb6044ebe4f03930147a817199 (diff) |
Merge branch 'master' of https://github.com/mamedev/mame.git
Diffstat (limited to 'tests/emu/attotime.cpp')
-rw-r--r-- | tests/emu/attotime.cpp | 10 |
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()); +} |