Skip to content

Commit b3a6911

Browse files
Add a length-based TensorType.in_same_class test
1 parent 4c02133 commit b3a6911

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/tensor/test_type.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ def test_in_same_class():
3131
assert test_type.in_same_class(test_type)
3232
assert not test_type.in_same_class(test_type2)
3333

34+
test_type = TensorType(config.floatX, shape=())
35+
test_type2 = TensorType(config.floatX, shape=(None,))
36+
assert not test_type.in_same_class(test_type2)
37+
3438

3539
def test_is_super():
3640
test_type = TensorType(config.floatX, shape=(None, None))

0 commit comments

Comments
 (0)