diff --git a/test/types/cube.jl b/test/types/cube.jl index aff7f9d..421451b 100644 --- a/test/types/cube.jl +++ b/test/types/cube.jl @@ -54,6 +54,7 @@ @testset "apply_append" begin @testset "OneToOne" begin + T = FakeOneToOneTransform() @test FeatureTransforms.apply_append(x, T; append_dim=1) == vcat(x, ones(2, 3, 4)) @@ -72,6 +73,7 @@ end @testset "OneToMany" begin + T = FakeOneToManyTransform() @test_throws DimensionMismatch FeatureTransforms.apply_append(x, T; append_dim=1) @@ -89,6 +91,7 @@ end @testset "ManyToOne" begin + T = FakeManyToOneTransform() @test isequal( @@ -108,6 +111,7 @@ end @testset "ManyToMany" begin + T = FakeManyToManyTransform() @test_throws DimensionMismatch FeatureTransforms.apply_append(x, T; append_dim=1) diff --git a/test/types/tables.jl b/test/types/tables.jl index a004a3d..8214214 100644 --- a/test/types/tables.jl +++ b/test/types/tables.jl @@ -8,6 +8,7 @@ @testset "apply" begin @testset "OneToOne" begin + T = FakeOneToOneTransform() @test isequal( @@ -25,6 +26,7 @@ end @testset "OneToMany" begin + T = FakeOneToManyTransform() @test isequal( @@ -42,6 +44,7 @@ end @testset "ManyToOne" begin + T = FakeManyToOneTransform() @test isequal( @@ -99,6 +102,7 @@ _table = deepcopy(table) @test_broken FeatureTransforms.apply!(_table, T; cols=:b, dims=[1, 2]) @test_broken _table == TableType((a=[1, 2, 3], b=[1, 1, 6])) + end @testset "apply_append" begin