@@ -14,8 +14,8 @@ assert(resource.int == 42, "Expected 42, got " .. resource.int)
1414assert (resource .float == 3.0 , " Expected 3.14, got " .. resource .float )
1515assert (resource .vec_usize [1 ] == 1 , " Expected 1, got " .. resource .vec_usize [1 ])
1616assert (resource .string_map :len () == 2 , " Expected 2, got " .. resource .string_map :len ())
17- -- assert(resource.string_map["foo"] == "hello", "Expected 'hello', got " .. resource.string_map["foo"])
18- -- assert(resource.string_map["zoo"] == "world", "Expected 'world', got " .. resource.string_map["zoo"])
17+ assert (resource .string_map [" foo" ] == " hello" , " Expected 'hello', got " .. resource .string_map [" foo" ])
18+ assert (resource .string_map [" zoo" ] == " world" , " Expected 'world', got " .. resource .string_map [" zoo" ])
1919
2020resource .string = " Goodbye, World!"
2121resource .bool = false
@@ -29,6 +29,5 @@ assert(resource.bool == false, "Expected false, got " .. tostring(resource.bool)
2929assert (resource .int == 24 , " Expected 24, got " .. resource .int )
3030assert (resource .float == 1.0 , " Expected 1.41, got " .. resource .float )
3131assert (resource .string_map :len () == 2 , " Expected 2, got " .. resource .string_map :len ())
32- -- assert(resource.string_map["foo"] == "goodbye", "Expected 'goodbye', got " .. resource.string_map["foo"])
33- -- assert(resource.string_map["zoo"] == "world", "Expected 'world', got " .. resource.string_map["zoo"])
34-
32+ assert (resource .string_map [" foo" ] == " goodbye" , " Expected 'goodbye', got " .. resource .string_map [" foo" ])
33+ assert (resource .string_map [" zoo" ] == " world" , " Expected 'world', got " .. resource .string_map [" zoo" ])
0 commit comments