File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ import SparseArrays
5
5
6
6
module Fruit
7
7
8
- struct RedApple end
8
+ struct RedApple{T}
9
+ x:: T
10
+ end
9
11
10
12
end
11
13
@@ -15,6 +17,8 @@ import .Fruit
15
17
# # HELPERS
16
18
17
19
@testset " typename" begin
20
+ @test StatisticalTraits. typename (Fruit. RedApple) == :RedApple
21
+ @test StatisticalTraits. typename (Fruit. RedApple{Int}) == :RedApple
18
22
@test StatisticalTraits. typename (Nothing) == :Nothing
19
23
@test StatisticalTraits. typename (UnionAll) == :UnionAll
20
24
@test StatisticalTraits. typename (Union{Char,Int}) ==
28
32
" anthony_blaoms_pet_elk"
29
33
@test StatisticalTraits. snakecase (" TheLASERBeam" , delim= ' ' ) ==
30
34
" the laser beam"
35
+ @test StatisticalTraits. snakecase (:TheLASERBeam ) == :the_laser_beam
31
36
end
32
37
33
38
You can’t perform that action at this time.
0 commit comments