1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00
This commit is contained in:
hrocho 2017-11-17 10:49:28 +01:00
parent 16ac6dfd19
commit bb9c7bea2a

View File

@ -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);