File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 113
113
114
114
ShortString {T} (s:: ShortString{T} ) where {T} = s
115
115
116
- ShortString (s:: Symbol ) where {T} = ShortString {T} (String (s))
116
+ ShortString (s:: Symbol ) = ShortString (String (s))
117
+ ShortString {T} (s:: Symbol ) where {T} = ShortString {T} (String (s))
117
118
118
119
function ShortString {T} (s:: ShortString{S} ) where {T, S}
119
120
sz = sizeof (s)
Original file line number Diff line number Diff line change 136
136
137
137
@test_throws ErrorException ShortString (" foobar" , 3 )
138
138
@test_throws ErrorException ss " foobar" b3
139
+
140
+
141
+ @test ShortString (:abcde ) == " abcde"
142
+ @test ShortString (:abcde ) isa ShortString7
143
+ @test ShortString15 (:abcde ) == " abcde"
144
+ @test ShortString15 (:abcde ) isa ShortString15
139
145
140
146
141
147
@test ShortString7 (Test. GenericString (" abcde" )) == " abcde"
You can’t perform that action at this time.
0 commit comments