Skip to content

Commit

Permalink
Can import instance extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Feb 22, 2024
1 parent af736be commit f9b4d84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Base_Tests/src/Data/Polyglot_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ add_specs suite_builder = suite_builder.group "Polyglot" group_builder->
hold.value . should_equal 42
hold.boxed . should_equal 42

group_builder.specify "imported extension method on IntHolder" <|
hold = IntHolder.new (6 * 7)
v = hold.value_minus 3
v . should_equal 39

group_builder.specify "should be able to execute a polyglot function object along with corresponding arguments" <|
fun = Java_Function.identity
Polyglot.execute fun ["42"] . should_equal "42"
Expand Down

0 comments on commit f9b4d84

Please sign in to comment.