diff --git a/test/log_test.gd b/test/log_test.gd index 12fe40f..fa0157b 100644 --- a/test/log_test.gd +++ b/test/log_test.gd @@ -4,11 +4,13 @@ extends GdUnitTestSuite func test_log_params(): var val = Log.to_printable([1, 2, 3]) - assert_that(val).is_equal("1 2 3") + assert_that(val).is_equal( + "[color=green]1[/color] [color=green]2[/color] [color=green]3[/color]") func test_log_array(): var val = Log.to_printable([[1, 2, 3]]) - assert_that(val).is_equal("[color=red][ [/color]1[color=red], [/color]2[color=red], [/color]3[color=red] ][/color]") + assert_that(val).is_equal( + "[color=red][ [/color][color=green]1[/color][color=red], [/color][color=green]2[/color][color=red], [/color][color=green]3[/color][color=red] ][/color]") func test_log_vector(): var val = Log.to_printable([Vector2(1, 2)]) @@ -17,7 +19,7 @@ func test_log_vector(): func test_log_dictionary(): var val = Log.to_printable([{some="val", another=2}]) assert_that(val).is_equal( - "[color=red]{ [/color][color=magenta]\"some\"[/color]: [color=pink]val[/color][color=red], [/color][color=magenta]\"another\"[/color]: 2[color=red] }[/color]") + "[color=red]{ [/color][color=magenta]\"some\"[/color]: [color=pink]val[/color][color=red], [/color][color=magenta]\"another\"[/color]: [color=green]2[/color][color=red] }[/color]") func test_log_strings_and_string_names(): var val = Log.to_printable(["Special"]) @@ -38,5 +40,5 @@ func test_custom_to_printable(): var val = Log.to_printable([obj]) var id = obj.get_instance_id() assert_that(val).is_equal( - "[color=red]{ [/color][color=magenta]\"val\"[/color]: ([color=purple]1[/color],[color=purple]2[/color])[color=red], [/color][color=magenta]\"id\"[/color]: %s[color=red] }[/color]" \ + "[color=red]{ [/color][color=magenta]\"val\"[/color]: ([color=purple]1[/color],[color=purple]2[/color])[color=red], [/color][color=magenta]\"id\"[/color]: [color=green]%s[/color][color=red] }[/color]" \ % str(id))