mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
.autotest
This commit is contained in:
parent
1a71bba7ca
commit
a6a071a16c
1 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,10 @@ void Test(double x)
|
|||
dumpe(30);
|
||||
|
||||
if(std::isfinite(x)) {
|
||||
RDUMP(x);
|
||||
RDUMP(FormatG(x, 17));
|
||||
RDUMPHEX(FormatG(x, 17));
|
||||
RDUMP(Atof(FormatG(x, 17)));
|
||||
ASSERT(Atof(FormatG(x, 17)) == x);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue