xo-alloc / xo-object: utest coverage + assorted bugfixes
This commit is contained in:
parent
2048de70f3
commit
bd00826448
34 changed files with 1069 additions and 326 deletions
|
|
@ -41,6 +41,21 @@ namespace xo {
|
|||
// booleans are global constants
|
||||
REQUIRE(gc->tospace_generation_of(btrue.ptr()) == generation_result::not_found);
|
||||
REQUIRE(gc->tospace_generation_of(bfalse.ptr()) == generation_result::not_found);
|
||||
|
||||
REQUIRE(btrue->self_tp().td()->short_name() == "Boolean");
|
||||
REQUIRE(bfalse->self_tp().td()->short_name() == "Boolean");
|
||||
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << btrue;
|
||||
REQUIRE(ss.str() == "#t");
|
||||
}
|
||||
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << bfalse;
|
||||
REQUIRE(ss.str() == "#f");
|
||||
}
|
||||
}
|
||||
} /*namespace ut*/
|
||||
} /*namespace xo*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue