mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
added attotime test for balrog (nw)
This commit is contained in:
parent
e446d56daa
commit
45f20a43c7
2 changed files with 12 additions and 0 deletions
|
@ -70,11 +70,13 @@ project("tests")
|
|||
includedirs {
|
||||
MAME_DIR .. "3rdparty/googletest/googletest/include",
|
||||
MAME_DIR .. "src/osd",
|
||||
MAME_DIR .. "src/emu",
|
||||
MAME_DIR .. "src/lib/util",
|
||||
}
|
||||
|
||||
files {
|
||||
MAME_DIR .. "tests/main.cpp",
|
||||
MAME_DIR .. "tests/lib/util/corestr.cpp",
|
||||
MAME_DIR .. "tests/emu/attotime.cpp",
|
||||
}
|
||||
|
||||
|
|
10
tests/emu/attotime.cpp
Normal file
10
tests/emu/attotime.cpp
Normal file
|
@ -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());
|
||||
}
|
Loading…
Reference in a new issue