diff --git a/tests/test_storage.cpp b/tests/test_storage.cpp index 93b36fd..3d5b2ef 100644 --- a/tests/test_storage.cpp +++ b/tests/test_storage.cpp @@ -86,7 +86,8 @@ const lest::test specification[] = EXPECT(catima::_storage.get_index()==4); }, - CASE("test maximum storage"){ // this test assumes max storage = 50 + CASE("test maximum storage"){ + auto maxdata = catima::max_storage_data; catima::Projectile p{12,6,6,1000}; catima::Material water({ {1,1,2}, @@ -98,18 +99,18 @@ const lest::test specification[] = }); catima::_storage.Reset(); EXPECT(catima::_storage.get_index()==0); - for(int i=1;i<51;i++){ + for(int i=1;i