[PATCH] fix: use values that are representable as double in test
authorAnsgar Burchardt <ansgar.burchardt@tu-dresden.de>
Mon, 25 Dec 2023 22:40:36 +0000 (23:40 +0100)
committerRaspbian forward porter <root@raspbian.org>
Thu, 8 Feb 2024 16:16:19 +0000 (16:16 +0000)
commit350bb22aa9747e23ec6a16972fd2ea6c6d9d4f3c
treed366e7a09ae8757f5bed37be0fd568ff5681f063
parent376ed834ae0cc6f462ba0ad65f59578b8cba1b5e
[PATCH] fix: use values that are representable as double in test

From f61fb0dbc9b41b2661a3b481a056fd006a238495 Mon Sep 17 00:00:00 2001
Origin: vendor, https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1327

Values like 0.1 are not representable as a double which can result in
problems, for example:

```
[...]/dune/common/test/hybridutilitiestest.cc:114:43: error: static assertion failed: Wrong compile time sum!
  114 |   static_assert(sum(numberTupleConstexpr) == 5.1, "Wrong compile time sum!");
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
[...]/dune/common/test/hybridutilitiestest.cc:114:43: note: the comparison reduces to ‘(5.09999999999999964473e+0l == 5.09999999999999999991e+0l)’
```

with [gcc 13.2.0 on i386][1].

  [1]: https://buildd.debian.org/status/fetch.php?pkg=dune-common&arch=i386&ver=2.9.0-4&stamp=1703267709&raw=0

Gbp-Pq: Name 0001-fix-use-values-that-are-representable-as-double-in-t.patch
dune/common/test/hybridutilitiestest.cc