You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: edu.cuny.hunter.hybridize.tests/test cases/edu/cuny/hunter/hybridize/tests/HybridizeFunctionRefactoringTest.java
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1608,4 +1608,49 @@ public void testModel() throws Exception {
1608
1608
// no hybrids.
1609
1609
assertTrue(functions.stream().map(Function::isHybrid).allMatch(b -> b == false));
1610
1610
}
1611
+
1612
+
/**
1613
+
* Test a model. No tf.function in this one. Use call instead of __call__. Ariadne doesn't support __call__.
1614
+
* See https://github.com/wala/ML/issues/24.
1615
+
*/
1616
+
@Test
1617
+
publicvoidtestModel2() throwsException {
1618
+
Set<Function> functions = this.getFunctions();
1619
+
assertNotNull(functions);
1620
+
1621
+
LOG.info("Found functions: " + functions.size());
1622
+
1623
+
// no hybrids.
1624
+
assertTrue(functions.stream().map(Function::isHybrid).allMatch(b -> b == false));
1625
+
}
1626
+
1627
+
/**
1628
+
* Test a model. No tf.function in this one. Explicit call method.
1629
+
*/
1630
+
@Test
1631
+
publicvoidtestModel3() throwsException {
1632
+
Set<Function> functions = this.getFunctions();
1633
+
assertNotNull(functions);
1634
+
1635
+
LOG.info("Found functions: " + functions.size());
1636
+
1637
+
// no hybrids.
1638
+
assertTrue(functions.stream().map(Function::isHybrid).allMatch(b -> b == false));
1639
+
}
1640
+
1641
+
/**
1642
+
* Test a model. No tf.function in this one. Explicit call method.
1643
+
*/
1644
+
@Test
1645
+
publicvoidtestModel4() throwsException {
1646
+
Set<Function> functions = this.getFunctions();
1647
+
assertNotNull(functions);
1648
+
1649
+
LOG.info("Found functions: " + functions.size());
1650
+
1651
+
// no hybrids.
1652
+
assertTrue(functions.stream().map(Function::isHybrid).allMatch(b -> b == false));
0 commit comments