@@ -54,6 +54,8 @@ def test_scalars_and_nil_not_exposed(type: str):
5454 "Dictionary" ,
5555 "Array" ,
5656 "PackedArray" ,
57+ # TODO: Callable (with conversion from a regular python function ?)
58+ # TODO: Signal
5759 ],
5860)
5961def test_constructor (kind : str ):
@@ -432,9 +434,13 @@ def test_operator(kind: str):
432434 case "equal" :
433435 assert_eq (godot .GDString ("foo" ) == godot .GDString ("foo" ), True )
434436 assert_eq (godot .GDString ("foo" ) == godot .GDString ("bar" ), False )
437+ assert_eq (godot .GDString ("foo" ) == None , False ) # noqa: E711
438+ assert_eq (godot .GDString ("foo" ) == 42 , False )
435439
436440 assert_eq (godot .Vector2i (1 , 2 ) == godot .Vector2i (1 , 2 ), True )
437441 assert_eq (godot .Vector2i (1 , 0 ) == godot .Vector2i (1 , 2 ), False )
442+ assert_eq (godot .Vector2i (1 , 0 ) == None , False ) # noqa: E711
443+ assert_eq (godot .Vector2i (1 , 0 ) == 42 , False )
438444
439445 assert_eq (godot .GDArray () == godot .GDArray (), True )
440446 assert_eq (
@@ -443,6 +449,8 @@ def test_operator(kind: str):
443449 True ,
444450 )
445451 assert_eq (godot .GDArray () == godot .GDArray ((1 ,)), False )
452+ assert_eq (godot .GDArray () == None , False ) # noqa: E711
453+ assert_eq (godot .GDArray () == 42 , False )
446454
447455 assert_eq (godot .GDDictionary () == godot .GDDictionary (), True )
448456 assert_eq (
@@ -451,6 +459,8 @@ def test_operator(kind: str):
451459 True ,
452460 )
453461 assert_eq (godot .GDDictionary () == godot .GDDictionary ([(1 , 2 )]), False )
462+ assert_eq (godot .GDDictionary () == None , False ) # noqa: E711
463+ assert_eq (godot .GDDictionary () == 42 , False )
454464
455465 case "not_equal" :
456466 assert_eq (godot .GDString ("foo" ) != godot .GDString ("bar" ), True )
0 commit comments