File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
itest/rust/src/builtin_tests/containers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ pub mod custom_callable {
165
165
use super :: * ;
166
166
use crate :: framework:: assert_eq_self;
167
167
use godot:: builtin:: { Dictionary , RustCallable } ;
168
+ use godot:: sys:: GdextBuild ;
168
169
use std:: fmt;
169
170
use std:: hash:: Hash ;
170
171
use std:: sync:: { Arc , Mutex } ;
@@ -285,8 +286,12 @@ pub mod custom_callable {
285
286
dict. set ( b, "hi" ) ;
286
287
assert_eq ! ( hash_count( & at) , 1 , "hash for a untouched if b is inserted" ) ;
287
288
assert_eq ! ( hash_count( & bt) , 1 , "hash needed for b dict key" ) ;
288
- assert_eq ! ( eq_count( & at) , 1 , "hash collision, eq for a needed" ) ;
289
- assert_eq ! ( eq_count( & bt) , 1 , "hash collision, eq for b needed" ) ;
289
+
290
+ // Introduced in https://github.com/godotengine/godot/pull/96797.
291
+ let eq = if GdextBuild :: since_api ( "4.4" ) { 2 } else { 1 } ;
292
+
293
+ assert_eq ! ( eq_count( & at) , eq, "hash collision, eq for a needed" ) ;
294
+ assert_eq ! ( eq_count( & bt) , eq, "hash collision, eq for b needed" ) ;
290
295
}
291
296
292
297
#[ itest]
You can’t perform that action at this time.
0 commit comments