Skip to content

Commit

Permalink
Another test.
Browse files Browse the repository at this point in the history
Another test for wala#211.
  • Loading branch information
khatchad committed Jul 22, 2024
1 parent 3eeebb5 commit e273254
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2969,6 +2969,13 @@ public void testModule77()
new int[] {2});
}

/** Test https://github.com/wala/ML/issues/211. */
@Test
public void testModule78()
throws ClassHierarchyException, IllegalArgumentException, CancelException, IOException {
test(new String[] {"module.py", "client2.py"}, "module.py", "f", "", 1, 1, new int[] {2});
}

@Test
public void testStaticMethod() throws ClassHierarchyException, CancelException, IOException {
test("tf2_test_static_method.py", "MyClass.the_static_method", 1, 1, 2);
Expand Down
6 changes: 6 additions & 0 deletions com.ibm.wala.cast.python.test/data/client2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Test https://github.com/wala/ML/issues/211.

from tensorflow import ones
from module import f

f(ones([1, 2]))

0 comments on commit e273254

Please sign in to comment.