File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113
114114ShortString {T} (s:: ShortString{T} ) where {T} = s
115115
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))
117118
118119function ShortString {T} (s:: ShortString{S} ) where {T, S}
119120 sz = sizeof (s)
Original file line number Diff line number Diff line change 136136
137137 @test_throws ErrorException ShortString (" foobar" , 3 )
138138 @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
139145
140146
141147 @test ShortString7 (Test. GenericString (" abcde" )) == " abcde"
You can’t perform that action at this time.
0 commit comments