Skip to content

Commit f837f4f

Browse files
committed
add testcase
1 parent 3125ae4 commit f837f4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ for S in SUBTYPES
257257
end
258258
end
259259

260+
# repeat one-time should return the same object
261+
@test repeat(InlineString("abc"), 1) === InlineString("abc")
262+
260263
# can't contain NUL when converting to Cstring
261264
@test_throws ArgumentError Base.cconvert(Cstring, InlineString("a\0c"))
262265

0 commit comments

Comments
 (0)