File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
gdnative-core/src/export/property Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -479,3 +479,13 @@ impl ArrayHint {
479
479
}
480
480
}
481
481
}
482
+
483
+ godot_test ! ( test_enum_hint_without_mapping {
484
+ let hint = EnumHint :: new( vec![ "Foo" . into( ) , "Bar" . into( ) ] ) ;
485
+ assert_eq!( hint. to_godot_hint_string( ) . to_string( ) , "Foo,Bar" . to_string( ) , ) ;
486
+ } ) ;
487
+
488
+ godot_test ! ( test_enum_hint_with_mapping {
489
+ let hint = EnumHint :: with_numbers( vec![ ( "Foo" . into( ) , 42 ) , ( "Bar" . into( ) , 67 ) ] ) ;
490
+ assert_eq!( hint. to_godot_hint_string( ) . to_string( ) , "Foo:42,Bar:67" . to_string( ) , ) ;
491
+ } ) ;
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ pub extern "C" fn run_tests(
28
28
29
29
status &= gdnative:: core_types:: test_core_types ( ) ;
30
30
31
+ status &= gdnative:: export:: hint:: test_enum_hint_without_mapping ( ) ;
32
+ status &= gdnative:: export:: hint:: test_enum_hint_with_mapping ( ) ;
33
+
34
+ status &= test_underscore_method_binding ( ) ;
35
+ status &= test_rust_class_construction ( ) ;
31
36
status &= test_from_instance_id ( ) ;
32
37
status &= test_nil_object_return_value ( ) ;
33
38
status &= test_rust_class_construction ( ) ;
You can’t perform that action at this time.
0 commit comments