Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
0x53A committed Jan 21, 2025
1 parent 8107906 commit 5242c56
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions itest/godot/ManualFfiTests.gd
Original file line number Diff line number Diff line change
Expand Up @@ -411,17 +411,18 @@ func test_RenamedFunc_shape():
var gdext_methods = obj_methods.filter(func(name): return not node_methods.has(name))

# Debug print to see what we found
print("GDExt properties: ", gdext_props)
print("GDExt methods: ", gdext_methods)
#print("GDExt properties: ", gdext_props)
#print("GDExt methods: ", gdext_methods)

# Assert counts
assert_eq(1, gdext_props.size())
assert_eq(2, gdext_methods.size())
assert_eq(gdext_props.size(), 2, "number of properties should be 2")
assert_eq(gdext_methods.size(), 2, "number of methods should be 2")

# Assert specific names
assert(gdext_props.has("int_val"))
assert(gdext_methods.has("f1"))
assert(gdext_methods.has("f2"))
assert(gdext_props.has("int_val"), "should have a property named 'int_val'")
assert(gdext_props.has("RenamedFunc"), "should have a property named 'RenamedFunc'") # godot automatically adds a property of the class name
assert(gdext_methods.has("f1"), "should have a method named 'f1'")
assert(gdext_methods.has("f2"), "should have a method named 'f2'")

func test_RenamedFunc_get_set():
# note: RenamedFunc is in property_test.rs
Expand Down

0 comments on commit 5242c56

Please sign in to comment.