We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1d26a commit fc670f5Copy full SHA for fc670f5
1 file changed
test/generic/Matrix-test.jl
@@ -308,13 +308,27 @@ end
308
@test D4[5, 5] == R(5)
309
@test D4 isa Generic.MatSpaceElem{elem_type(R)}
310
311
+ # test comparison of matrices over different ring, and of different sizes
312
x = zero_matrix(R, 2, 2)
313
y = zero_matrix(ZZ, 2, 3)
314
315
+ @test x != y
316
@test x in [x, y]
317
@test x in [y, x]
318
@test !(x in [y])
-
319
+
320
+ @test x in keys(Dict(x => 1))
321
+ @test !(y in keys(Dict(x => 1)))
322
323
+ # test comparison of matrices over same ring, but of different sizes
324
+ x = zero_matrix(ZZ, 2, 2)
325
+ y = zero_matrix(ZZ, 2, 3)
326
327
328
+ @test x in [x, y]
329
+ @test x in [y, x]
330
+ @test !(x in [y])
331
332
@test x in keys(Dict(x => 1))
333
@test !(y in keys(Dict(x => 1)))
334
0 commit comments