@@ -19,7 +19,7 @@ void free_notification(void *resource)
19
19
UNSCOPED_INFO (" Freeing: " << resource);
20
20
}
21
21
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]" )
23
23
{
24
24
register_free_notifier (&free_notification);
25
25
@@ -36,7 +36,6 @@ TEST_CASE("Load and free resource bundle", "[load_resource_bundle][free_resource
36
36
load_resource_bundle (" test" , " test.txt" );
37
37
38
38
// Confirm bundle and its resources are loaded
39
- REQUIRE (has_resource_bundle (" test" ));
40
39
REQUIRE (has_animation_script (" WalkingScript" ));
41
40
REQUIRE (has_bitmap (" FrogBmp" ));
42
41
REQUIRE (has_font (" hara" ));
@@ -46,11 +45,10 @@ TEST_CASE("Load and free resource bundle", "[load_resource_bundle][free_resource
46
45
REQUIRE (has_resource_bundle (" blah" ));
47
46
REQUIRE (has_bitmap (" ufo" ));
48
47
REQUIRE (has_resource_bundle (" test" ));
49
-
50
- // Free bundle and confirm resources are freed
48
+
49
+ // Free bundle and confirm resources are unloaded
51
50
free_resource_bundle (" test" );
52
51
53
- REQUIRE_FALSE (has_resource_bundle (" test" ));
54
52
REQUIRE_FALSE (has_animation_script (" WalkingScript" ));
55
53
REQUIRE_FALSE (has_bitmap (" FrogBmp" ));
56
54
REQUIRE_FALSE (has_font (" hara" ));
@@ -59,4 +57,5 @@ TEST_CASE("Load and free resource bundle", "[load_resource_bundle][free_resource
59
57
REQUIRE_FALSE (has_timer (" my timer" ));
60
58
REQUIRE_FALSE (has_resource_bundle (" blah" ));
61
59
REQUIRE_FALSE (has_bitmap (" ufo" ));
60
+ REQUIRE_FALSE (has_resource_bundle (" test" ));
62
61
}
0 commit comments