@@ -1538,7 +1538,7 @@ end
15381538 show (io, MIME " text/plain" (), transform (A))
15391539 @test String (take! (io)) == showstring
15401540 _show_with_braille_patterns (convert (IOContext, io), transform (A))
1541- @test String (take! (io)) == braille
1541+ @test contains ( String (take! (io)), braille)
15421542 end
15431543
15441544 # every 1-dot braille pattern
@@ -1559,7 +1559,7 @@ end
15591559 for transform in (identity, adjoint, transpose)
15601560 expected = " ⎡" * Char (10240 )^ 2 * " ⎤\n ⎣" * Char (10240 )^ 2 * " ⎦"
15611561 _show_with_braille_patterns (convert (IOContext, io), transform (A))
1562- @test String (take! (io)) == expected
1562+ @test contains ( String (take! (io)), expected)
15631563 end
15641564
15651565 A = sparse (Int64[1 , 2 , 4 , 2 , 3 ], Int64[1 , 1 , 1 , 2 , 2 ], Int64[1 , 1 , 1 , 1 , 1 ], 4 , 2 )
@@ -1578,7 +1578,7 @@ end
15781578 show (io, MIME " text/plain" (), transform (A))
15791579 @test String (take! (io)) == showstring
15801580 _show_with_braille_patterns (convert (IOContext, io), transform (A))
1581- @test String (take! (io)) == braille
1581+ @test contains ( String (take! (io)), braille)
15821582 end
15831583
15841584 A = sparse (Int64[1 , 3 , 2 , 4 ], Int64[1 , 1 , 2 , 2 ], Int64[1 , 1 , 1 , 1 ], 7 , 3 )
@@ -1597,7 +1597,7 @@ end
15971597 show (io, MIME " text/plain" (), transform (A))
15981598 @test String (take! (io)) == showstring
15991599 _show_with_braille_patterns (convert (IOContext, io), transform (A))
1600- @test String (take! (io)) == braille
1600+ @test contains ( String (take! (io)), braille)
16011601 end
16021602
16031603 A = sparse (Int64[1 : 10 ;], Int64[1 : 10 ;], fill (Float64 (1 ), 10 ))
@@ -1606,7 +1606,7 @@ end
16061606 " ⎣⠀⠀⠀⠀⠑⎦"
16071607 for transform in (identity, adjoint, transpose)
16081608 _show_with_braille_patterns (convert (IOContext, io), transform (A))
1609- @test String (take! (io)) == brailleString
1609+ @test contains ( String (take! (io)), brailleString)
16101610 end
16111611
16121612 # Issue #30589
@@ -1622,22 +1622,22 @@ end
16221622 # vertical scaling
16231623 ioc = IOContext (io, :displaysize => (5 , 80 ), :limit => true )
16241624 _show_with_braille_patterns (ioc, _filled_sparse (10 , 10 ))
1625- @test String (take! (io)) == " ⎡⣿⣿⎤\n " *
1626- " ⎣⣿⣿⎦"
1625+ @test contains ( String (take! (io)), " ⎡⣿⣿⎤\n " *
1626+ " ⎣⣿⣿⎦" )
16271627
16281628 _show_with_braille_patterns (ioc, _filled_sparse (20 , 10 ))
1629- @test String (take! (io)) == " ⎡⣿⣿⎤\n " *
1630- " ⎣⣿⣿⎦"
1629+ @test contains ( String (take! (io)), " ⎡⣿⣿⎤\n " *
1630+ " ⎣⣿⣿⎦" )
16311631
16321632 # horizontal scaling
16331633 ioc = IOContext (io, :displaysize => (80 , 4 ), :limit => true )
16341634 _show_with_braille_patterns (ioc, _filled_sparse (8 , 8 ))
1635- @test String (take! (io)) == " ⎡⣿⣿⎤\n " *
1636- " ⎣⣿⣿⎦"
1635+ @test contains ( String (take! (io)), " ⎡⣿⣿⎤\n " *
1636+ " ⎣⣿⣿⎦" )
16371637
16381638 _show_with_braille_patterns (ioc, _filled_sparse (8 , 16 ))
1639- @test String (take! (io)) == " ⎡⣿⣿⎤\n " *
1640- " ⎣⣿⣿⎦"
1639+ @test contains ( String (take! (io)), " ⎡⣿⣿⎤\n " *
1640+ " ⎣⣿⣿⎦" )
16411641
16421642 # respect IOContext while displaying J
16431643 I, J, V = shuffle (1 : 50 ), shuffle (1 : 50 ), [1 : 50 ;]
0 commit comments