Skip to content

Commit c88367b

Browse files
committed
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always-accurate
2 parents 81cfcb6 + 35d7cad commit c88367b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestTensorflow2Model.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,7 +3843,6 @@ private void test(
38433843
"Tensor variable for pointer key: " + lpk + " should have types, but was null.",
38443844
types);
38453845

3846-
// check that the type is in the expected set.
38473846
Set<TensorType> expectedTypes =
38483847
expectedTensorParameterValueNumberToTypes.get(lpk.getValueNumber());
38493848
assertNotNull(
@@ -3852,19 +3851,16 @@ private void test(
38523851
+ " should not be null.",
38533852
expectedTypes);
38543853

3854+
// check that the types are the same.
38553855
assertEquals(
3856-
"Expected number of types for value number: "
3856+
"Expected types for value number: "
38573857
+ lpk.getValueNumber()
38583858
+ " should be "
3859-
+ expectedTypes.size()
3859+
+ expectedTypes
38603860
+ ", but was "
3861-
+ types.size(),
3862-
expectedTypes.size(),
3863-
types.size());
3864-
3865-
assertTrue(
3866-
"Expected types: " + expectedTypes + " to contain actual types: " + types,
3867-
expectedTypes.containsAll(types));
3861+
+ types,
3862+
expectedTypes,
3863+
types);
38683864
});
38693865
}
38703866
}

0 commit comments

Comments
 (0)