Summary
Write e2e tests for calling methods on foreign Java data types (data ... = foreign java ... { func ... })
Todo
[x] add test with 0 parameters
[x] add test with 1 parameter
[x] add test with 2 parameters
[x] add test with 3 parameters
[x] add test with with type arguments (requires #24) or add as todo for #24
[x] add + fix test that replicates failing behavior in tiger.pie for Result[T, E].unwrap()
[x] Reproduce
[x] Minimize example
[x] Add failing test
[x] Fix issue
[x] Verify that it also solved the code generation for tiger.pie
Reason
Code generation for calling foreign methods is currently completely untested. It should be tested to prevent regressions and to add confidence when changing the code generation
Implementation
Create a directory lang/lang.test/src/test/java/mb/pie/lang/test/call/foreignMethod to implement the tests
Summary Write e2e tests for calling methods on foreign Java data types (
data ... = foreign java ... { func ... }
)Todo
tiger.pie
forResult[T, E].unwrap()
Reason Code generation for calling foreign methods is currently completely untested. It should be tested to prevent regressions and to add confidence when changing the code generation
Implementation Create a directory
lang/lang.test/src/test/java/mb/pie/lang/test/call/foreignMethod
to implement the testsRelated issues