feat: Porting wasm host function tests to new design

This commit is contained in:
TimothyBanks
2026-08-15 19:41:32 -04:00
parent d469fc2cdf
commit e863db5061
33 changed files with 1661 additions and 1019 deletions

View File

@@ -0,0 +1,19 @@
#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