mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
20 lines
417 B
C++
20 lines
417 B
C++
#include <gtest/gtest.h>
|
|
#include <tx/wasm/RealHostFixture.h>
|
|
|
|
#include <expected>
|
|
|
|
namespace xrpl::test {
|
|
|
|
struct ParentLedgerTimeImpl : WasmImplTest
|
|
{
|
|
};
|
|
|
|
TEST_F(ParentLedgerTimeImpl, MatchesLedger)
|
|
{
|
|
auto const result = host().getParentLedgerTime();
|
|
ASSERT_TRUE(result.has_value());
|
|
EXPECT_EQ(*result, ledger.getOpenLedger().parentCloseTime().time_since_epoch().count());
|
|
}
|
|
|
|
} // namespace xrpl::test
|