Skip to content

Commit

Permalink
Missing tests for string() (JuliaLang#39660)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored Feb 15, 2021
1 parent d4bd842 commit a92d7de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/strings/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,11 @@ for i = 1:10
print(buf, join(s22021, "\n"))
@test isvalid(String, take!(buf))
end

@testset "string()" begin
# test the Float sizehints
@test string(2.f0) == "2.0"
@test string(2.f0, 2.0) == "2.02.0"
# test empty args
@test string() == ""
end

0 comments on commit a92d7de

Please sign in to comment.