mirror of
https://github.com/holub/mame
synced 2025-06-09 06:13:04 +03:00
added attotime test for balrog (nw)
This commit is contained in:
parent
e446d56daa
commit
45f20a43c7
@ -70,11 +70,13 @@ project("tests")
|
|||||||
includedirs {
|
includedirs {
|
||||||
MAME_DIR .. "3rdparty/googletest/googletest/include",
|
MAME_DIR .. "3rdparty/googletest/googletest/include",
|
||||||
MAME_DIR .. "src/osd",
|
MAME_DIR .. "src/osd",
|
||||||
|
MAME_DIR .. "src/emu",
|
||||||
MAME_DIR .. "src/lib/util",
|
MAME_DIR .. "src/lib/util",
|
||||||
}
|
}
|
||||||
|
|
||||||
files {
|
files {
|
||||||
MAME_DIR .. "tests/main.cpp",
|
MAME_DIR .. "tests/main.cpp",
|
||||||
MAME_DIR .. "tests/lib/util/corestr.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 New Issue
Block a user