From c4f6c86999ec8fe3b610ac269a121c9fa424daf5 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 23 Oct 2021 19:49:43 -0400 Subject: dlang dub & nix build related, includes dep update - nix-shell --pure - nix-build - dub build --compiler=ldc2 --build=release --force --- src/ext_depends/D-YAML/source/dyaml/representer.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ext_depends/D-YAML/source/dyaml/representer.d') diff --git a/src/ext_depends/D-YAML/source/dyaml/representer.d b/src/ext_depends/D-YAML/source/dyaml/representer.d index a7ca802..98c825b 100644 --- a/src/ext_depends/D-YAML/source/dyaml/representer.d +++ b/src/ext_depends/D-YAML/source/dyaml/representer.d @@ -142,7 +142,7 @@ Node representData(const Node data, ScalarStyle defaultScalarStyle, CollectionSt { // Float comparison is pretty unreliable... auto result = representData(Node(1.0), ScalarStyle.invalid, CollectionStyle.invalid); - assert(approxEqual(result.as!string.to!real, 1.0)); + assert(isClose(result.as!string.to!real, 1.0)); assert(result.tag == "tag:yaml.org,2002:float"); assert(representData(Node(real.nan), ScalarStyle.invalid, CollectionStyle.invalid) == Node(".nan", "tag:yaml.org,2002:float")); -- cgit v1.2.3