Better assertion infos and formatted code
This commit is contained in:
parent
0670aed506
commit
14839b3765
6 changed files with 163 additions and 109 deletions
|
|
@ -85,7 +85,7 @@ unittest
|
|||
assert(!tmpl_.getComponent!CUnregistered);
|
||||
assert(*tmpl_.getComponent!CInt == 1);
|
||||
assert(*tmpl_.getComponent!CFloat == 2.0);
|
||||
|
||||
|
||||
Entity* entity = gEM.addEntity(tmpl_);
|
||||
assert(entity.getComponent!CInt);
|
||||
assert(entity.getComponent!CFloat);
|
||||
|
|
@ -182,4 +182,4 @@ unittest
|
|||
gEM.freeTemplate(tmpl_5);
|
||||
gEM.freeTemplate(tmpl_6);
|
||||
gEM.freeTemplate(tmpl_7);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue