@@ -15,13 +15,13 @@ using Test: @test, @testset
1515 @testset " (s::Style)(f)" begin
1616 # Test the shorthand for creating an Implementation by calling a Style with a
1717 # function.
18- @test FI. Style ([1 , 2 , 3 ])(getindex) ≡
18+ @test FI. style ([1 , 2 , 3 ])(getindex) ≡
1919 FI. Implementation (getindex, FI. DefaultArrayStyle {1} ())
2020 end
2121 @testset " Style" begin
2222 # Test basic Style trait for different array types
2323 @test FI. Style (typeof ([1 , 2 , 3 ])) isa FI. DefaultArrayStyle{1 }
24- @test FI. Style ([1 , 2 , 3 ]) isa FI. DefaultArrayStyle{1 }
24+ @test FI. style ([1 , 2 , 3 ]) isa FI. DefaultArrayStyle{1 }
2525 @test FI. Style (typeof ([1 2 ; 3 4 ])) isa FI. DefaultArrayStyle{2 }
2626 @test FI. Style (typeof (rand (2 , 3 , 4 ))) isa FI. DefaultArrayStyle{3 }
2727
@@ -79,23 +79,23 @@ using Test: @test, @testset
7979 conflict_val = FI. ArrayConflict (Val (3 ))
8080 @test conflict_val isa FI. ArrayConflict
8181
82- # Test combine_styles with no arguments
83- @test FI. combine_styles () isa FI. DefaultArrayStyle{0 }
82+ # Test style with no arguments
83+ @test FI. style () isa FI. DefaultArrayStyle{0 }
8484
85- # Test combine_styles with single argument
86- @test FI. combine_styles ([1 , 2 ]) isa FI. DefaultArrayStyle{1 }
87- @test FI. combine_styles ([1 2 ; 3 4 ]) isa FI. DefaultArrayStyle{2 }
85+ # Test style with single argument
86+ @test FI. style ([1 , 2 ]) isa FI. DefaultArrayStyle{1 }
87+ @test FI. style ([1 2 ; 3 4 ]) isa FI. DefaultArrayStyle{2 }
8888
89- # Test combine_styles with two arguments
90- result = FI. combine_styles ([1 , 2 ], [1 2 ; 3 4 ])
89+ # Test style with two arguments
90+ result = FI. style ([1 , 2 ], [1 2 ; 3 4 ])
9191 @test result isa FI. DefaultArrayStyle{Any}
9292
93- # Test combine_styles with same dimensions
94- result = FI. combine_styles ([1 ], [2 ])
93+ # Test style with same dimensions
94+ result = FI. style ([1 ], [2 ])
9595 @test result isa FI. DefaultArrayStyle{1 }
9696
97- # Test combine_styles with multiple arguments
98- result = FI. combine_styles ([1 ], [1 2 ], rand (2 , 3 , 4 ))
97+ # Test style with multiple arguments
98+ result = FI. style ([1 ], [1 2 ], rand (2 , 3 , 4 ))
9999 @test result isa FI. DefaultArrayStyle{Any}
100100
101101 # Test result_style with single argument
0 commit comments