summaryrefslogtreecommitdiffstatshomepage
path: root/tests/emu/attotime.cpp
blob: e37954b249f2456d850c9be5620d937cb594b588 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "catch.hpp"

#include "emucore.h"
#include "eminline.h"
#include "attotime.h"

TEST_CASE("convert 1 sec to attotime", "[emu]")
{
   attotime value = attotime::from_seconds(1);
   REQUIRE(1000000000000000000 == value.as_attoseconds());
}