@@ -19,7 +19,7 @@ void free_notification(void *resource)
1919 UNSCOPED_INFO (" Freeing: " << resource);
2020}
2121
22- TEST_CASE (" Load and free resource bundle " , " [load_resource_bundle][free_resource_bundle]" )
22+ TEST_CASE (" Resource bundle can be loaded and freed " , " [load_resource_bundle][free_resource_bundle]" )
2323{
2424 register_free_notifier (&free_notification);
2525
@@ -36,7 +36,6 @@ TEST_CASE("Load and free resource bundle", "[load_resource_bundle][free_resource
3636 load_resource_bundle (" test" , " test.txt" );
3737
3838 // Confirm bundle and its resources are loaded
39- REQUIRE (has_resource_bundle (" test" ));
4039 REQUIRE (has_animation_script (" WalkingScript" ));
4140 REQUIRE (has_bitmap (" FrogBmp" ));
4241 REQUIRE (has_font (" hara" ));
@@ -46,11 +45,10 @@ TEST_CASE("Load and free resource bundle", "[load_resource_bundle][free_resource
4645 REQUIRE (has_resource_bundle (" blah" ));
4746 REQUIRE (has_bitmap (" ufo" ));
4847 REQUIRE (has_resource_bundle (" test" ));
49-
50- // Free bundle and confirm resources are freed
48+
49+ // Free bundle and confirm resources are unloaded
5150 free_resource_bundle (" test" );
5251
53- REQUIRE_FALSE (has_resource_bundle (" test" ));
5452 REQUIRE_FALSE (has_animation_script (" WalkingScript" ));
5553 REQUIRE_FALSE (has_bitmap (" FrogBmp" ));
5654 REQUIRE_FALSE (has_font (" hara" ));
@@ -59,4 +57,5 @@ TEST_CASE("Load and free resource bundle", "[load_resource_bundle][free_resource
5957 REQUIRE_FALSE (has_timer (" my timer" ));
6058 REQUIRE_FALSE (has_resource_bundle (" blah" ));
6159 REQUIRE_FALSE (has_bitmap (" ufo" ));
60+ REQUIRE_FALSE (has_resource_bundle (" test" ));
6261}
0 commit comments