Skip to content

Commit

Permalink
add test for new pyc behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Dec 14, 2023
1 parent 9311085 commit 3942ebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/kgtests/interop/test_pyc.kg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
t(".pyf(""math"";""pow"")"; .pyf("math";"pow"); 1)
t(".pyc(pow;[2 3];:{})"; .pyc(pow;[2 3];:{}); 8.0)

:" Test the ability to call a function by string name "
t(".pyc(""pow"";[2 3];:{})"; .pyc("pow";[2 3];:{}); 8.0)

:" Test the ability to call a python function with args and kwargs "
:" use a good example object that has both args and kwargs "
t(".pyf(""datetime"";""datetime"""); .pyf("datetime";"datetime"); 1)
Expand Down

0 comments on commit 3942ebf

Please sign in to comment.