Skip to content

Commit 23043fc

Browse files
committed
Minor cleanups in tests
1 parent 099c984 commit 23043fc

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

itest/godot/TestSuite.gd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ func assert_that(what: bool, message: String = "") -> bool:
2929
print_error("GDScript assertion failed.")
3030
return false
3131

32-
func assert_eq(left, right, message: String = "") -> bool:
33-
if left == right:
32+
func assert_eq(actual, expected, message: String = "") -> bool:
33+
if actual == expected:
3434
return true
3535

3636
_assertion_failed = true
3737

3838
print_newline() # previous line not yet broken
3939
if message:
40-
print_error("GDScript assertion failed: %s\n left: %s\n right: %s" % [message, left, right])
40+
print_error("GDScript assertion failed: %s\n actual: %s\n expected: %s" % [message, actual, expected])
4141
else:
42-
print_error("GDScript assertion failed: `(left == right)`\n left: %s\n right: %s" % [left, right])
42+
print_error("GDScript assertion failed: `(actual == expected)`\n actual: %s\n expected: %s" % [actual, expected])
4343
return false
4444

4545
# Disable error message printing from godot.

itest/rust/src/builtin_tests/string/string_name_test.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,6 @@ fn string_name_from_latin1_with_nul() {
138138
let a = StringName::from_latin1_with_nul(bytes);
139139
let b = StringName::from(string);
140140

141-
println!();
142-
println!(
143-
"Arrays: a={:?}, b={:?}",
144-
a.to_string().as_bytes(),
145-
b.to_string().as_bytes()
146-
);
147-
println!("Hashes: a={:?}, b={:?}", a.hash(), b.hash());
148-
println!("Lengths: a={}, b={}", a.len(), b.len());
149141
assert_eq!(a, b);
150142
}
151143
}

0 commit comments

Comments
 (0)