Skip to content

Commit 9f434d0

Browse files
committed
Add error reminders to array_debug test
1 parent f218c31 commit 9f434d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gdnative-core/src/core_types/variant_array.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,9 @@ godot_test!(
616616
test_array_debug {
617617
use std::panic::catch_unwind;
618618

619+
println!(" -- expected 4 'Index 3 out of bounds (len 3)' error messages for edge cases");
620+
println!(" -- the test is successful when and only when these errors are shown");
621+
619622
let arr = VariantArray::new(); // []
620623
arr.push(&Variant::new("hello world"));
621624
arr.push(&Variant::new(true));

0 commit comments

Comments
 (0)