Skip to content

Commit d224210

Browse files
committed
Added test for precision()
1 parent a65abbe commit d224210

6 files changed

+6
-5
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MicroFloatingPoints"
22
uuid = "6e0295d3-a2ae-4d9e-ab31-7b55fc0f4333"
33
authors = ["Frédéric Goualard <[email protected]>"]
4-
version = "1.3.3"
4+
version = "1.4.0"
55

66
[deps]
77
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

src/MFPPlot.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MFPPlot --
22
#
3-
# Copyright 2019--2021 University of Nantes, France.
3+
# Copyright 2019--2023 University of Nantes, France.
44
#
55
# This file is part of the MicroFloatingPoints library.
66
#

src/MFPRandom.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MFPRandom --
22
#
3-
# Copyright 2019--2021 University of Nantes, France.
3+
# Copyright 2019--2023 University of Nantes, France.
44
#
55
# This file is part of the MicroFloatingPoints library.
66
#

src/MFPUtils.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MFPUtils --
22
#
3-
# Copyright 2019--2021 University of Nantes, France.
3+
# Copyright 2019--2023 University of Nantes, France.
44
#
55
# This file is part of the MicroFloatingPoints library.
66
#

src/MicroFloatingPoints.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MicroFloatingPoints --
22
#
3-
# Copyright 2019--2022 University of Nantes, France.
3+
# Copyright 2019--2023 University of Nantes, France.
44
#
55
# This file is part of the MicroFloatingPoints library.
66
#

test/misc.jl

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ end;
2626
@testset "precision" begin
2727
@test precision(Floatmu{5,10}) == precision(Float16)
2828
@test precision(Floatmu{8,23}) == precision(Float32)
29+
@test precision(Floatmu{8,23}(2.0)) == 24
2930
end;
3031

3132
@testset "exponent" begin

0 commit comments

Comments
 (0)