/** @file DAtomicType.test.cpp * * @author Roland Conybeare, Mar 2026 **/ #include "init_type.hpp" #include "AtomicType.hpp" #include #include #include #include namespace xo { using xo::scm::AType; using xo::scm::DAtomicType; using xo::scm::Metatype; using xo::mm::AAllocator; using xo::mm::DArena; using xo::mm::ArenaConfig; namespace ut { static InitEvidence s_init = (InitSubsys::require()); TEST_CASE("DAtomicType-make", "[type][DAtomicType]") { ArenaConfig cfg { .name_ = "testarena", .size_ = 4*1024 }; DArena arena = DArena::map(cfg); auto alloc = obj(&arena); auto f64_type = obj(DAtomicType::_make(alloc, Metatype::unit())); REQUIRE(f64_type); REQUIRE(f64_type.metatype().code() == Metatype::unit().code()); } } /*namespace ut*/ } /*namespace xo*/ /* end DAtomicType.test.cpp */