mirror of
https://github.com/gwm17/catima.git
synced 2024-11-23 02:38:51 -05:00
tests
This commit is contained in:
parent
16ac6dfd19
commit
bb9c7bea2a
|
@ -60,13 +60,21 @@ const lest::test specification[] =
|
|||
EXPECT(catima::_storage.get_index()==0);
|
||||
|
||||
catima::_storage.Add(p,water);
|
||||
auto dp = catima::_storage.Get(0);
|
||||
EXPECT(catima::_storage.get_index()==1);
|
||||
|
||||
EXPECT(dp.p.A==12);
|
||||
EXPECT(dp.m.ncomponents()==2);
|
||||
catima::_storage.Add(p,water);
|
||||
auto dp2 = catima::_storage.Get(1);
|
||||
EXPECT(catima::_storage.get_index()==1);
|
||||
EXPECT(dp2.p.A==0);
|
||||
EXPECT(dp2.m.ncomponents()==0);
|
||||
|
||||
catima::_storage.Add(p,graphite);
|
||||
auto dp3 = catima::_storage.Get(1);
|
||||
EXPECT(catima::_storage.get_index()==2);
|
||||
EXPECT(dp3.p.A==12);
|
||||
EXPECT(dp3.m.ncomponents()==1);
|
||||
|
||||
catima::_storage.Add(p,graphite);
|
||||
EXPECT(catima::_storage.get_index()==2);
|
||||
|
|
Loading…
Reference in New Issue
Block a user