@@ -115,13 +115,24 @@ end
115115 end
116116 end
117117
118- @testset " vcat + hcat" begin
119- @test compare (vcat, AT, fill (0f0 , (10 , 10 )), rand (Float32, 20 , 10 ))
120- @test compare (hcat, AT, fill (0f0 , (10 , 10 )), rand (Float32, 10 , 10 ))
121-
122- @test compare (hcat, AT, rand (Float32, 3 , 3 ), rand (Float32, 3 , 3 ))
123- @test compare (vcat, AT, rand (Float32, 3 , 3 ), rand (Float32, 3 , 3 ))
124- @test compare ((a,b) -> cat (a, b; dims= 4 ), AT, rand (Float32, 3 , 4 ), rand (Float32, 3 , 4 ))
118+ @testset " cat" begin
119+ @test compare (hcat, AT, rand (3 ), rand (3 ))
120+ @test compare (hcat, AT, rand (), rand (1 , 3 ))
121+ @test compare (hcat, AT, rand (1 , 3 ), rand ())
122+ @test compare (hcat, AT, rand (3 ), rand (3 , 3 ))
123+ @test compare (hcat, AT, rand (3 , 3 ), rand (3 ))
124+ @test compare (hcat, AT, rand (3 , 3 ), rand (3 , 3 ))
125+ # @test compare(hcat, AT, rand(), rand(3, 3))
126+ # @test compare(hcat, AT, rand(3, 3), rand())
127+
128+ @test compare (vcat, AT, rand (3 ), rand (3 ))
129+ @test compare (vcat, AT, rand (3 , 3 ), rand (3 , 3 ))
130+ @test compare (vcat, AT, rand (), rand (3 ))
131+ @test compare (vcat, AT, rand (3 ), rand ())
132+ @test compare (vcat, AT, rand (), rand (3 , 3 ))
133+ # @test compare(vcat, AT, rand(3, 3), rand())
134+
135+ @test compare ((a,b) -> cat (a, b; dims= 4 ), AT, rand (3 , 4 ), rand (3 , 4 ))
125136 end
126137
127138 @testset " reshape" begin
0 commit comments