From 1f7117a2355b0935c274e26ffd98c52a6cfdc5b8 Mon Sep 17 00:00:00 2001 From: woclass Date: Wed, 10 May 2023 00:15:43 +0800 Subject: [PATCH] wip: add test --- test/parse.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/parse.jl b/test/parse.jl index 69092b2c4188df..c3cde8b7002653 100644 --- a/test/parse.jl +++ b/test/parse.jl @@ -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 (""," ")