Skip to content

Commit

Permalink
wip: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed May 9, 2023
1 parent e07e774 commit 1f7117a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ end
@test tryparse(Float32, "1.23") === 1.23f0
@test tryparse(Float16, "1.23") === Float16(1.23)

# (#49689)
@test tryparse(Float32, "17.328679084777833") == 17.328680f0
@test 17.328679084777833f0 == 17.328680f0
# TODO: add more test

# parsing complex numbers (#22250)
@testset "complex parsing" begin
for sign in ('-','+'), Im in ("i","j","im"), s1 in (""," "), s2 in (""," "), s3 in (""," "), s4 in (""," ")
Expand Down

0 comments on commit 1f7117a

Please sign in to comment.