annotate UnitTestsSources/GenericToolboxTests.cpp @ 1689:fad38c4525f9

nicer modal for user preferences
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Nov 2020 17:07:32 +0100
parents 03afa09cfcf1
children 9ac2a65d4172
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1 /**
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2 * Stone of Orthanc
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4 * Department, University Hospital of Liege, Belgium
1270
2d8ab34c8c91 upgrade to year 2020
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1182
diff changeset
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
6 *
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
7 * This program is free software: you can redistribute it and/or
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
10 * the License, or (at your option) any later version.
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
11 *
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
12 * This program is distributed in the hope that it will be useful, but
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
15 * Affero General Public License for more details.
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
16 *
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
19 **/
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
20
1587
a1405ab3a91c reorganization
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1512
diff changeset
21 #include "../OrthancStone/Sources/Toolbox/GenericToolbox.h"
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
22
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
23 #include <boost/date_time/posix_time/posix_time.hpp>
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
24 #include <boost/lexical_cast.hpp>
1328
fd616c4a5904 Added mechanism to prevent callbacks from being sent on dead WebAssemblyViewport objects
Benjamin Golinvaux <bgo@osimis.io>
parents: 1279
diff changeset
25 #include <boost/enable_shared_from_this.hpp>
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
26
1455
30deba7bc8e2 simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1403
diff changeset
27 #include <gtest/gtest.h>
30deba7bc8e2 simplifying include_directories
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1403
diff changeset
28 #include <stdint.h>
1169
5594d8d4a70f fix build on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1166
diff changeset
29 #include <cmath>
5594d8d4a70f fix build on OS X
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1166
diff changeset
30
1680
03afa09cfcf1 running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1679
diff changeset
31 #if __cplusplus >= 201103L // Is C++11?
03afa09cfcf1 running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1679
diff changeset
32 # include <cinttypes> // For PRId64
03afa09cfcf1 running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1679
diff changeset
33 #else
03afa09cfcf1 running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1679
diff changeset
34 # define PRId64 "%lld"
03afa09cfcf1 running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1679
diff changeset
35 #endif
03afa09cfcf1 running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1679
diff changeset
36
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
37 TEST(GenericToolbox, TestLegitDoubleString)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
38 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
39 using OrthancStone::GenericToolbox::LegitDoubleString;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
40
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
41 EXPECT_TRUE(LegitDoubleString("12.34"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
42 EXPECT_TRUE(LegitDoubleString("1234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
43 EXPECT_TRUE(LegitDoubleString(".1234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
44 EXPECT_TRUE(LegitDoubleString("1234."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
45 EXPECT_TRUE(LegitDoubleString("0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
46 EXPECT_TRUE(LegitDoubleString("000000000000000000000000000000000000000000000000000000000000000000000000000000000000.00000000000000000000000011234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
47 EXPECT_TRUE(LegitDoubleString("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000112.34"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
48 EXPECT_TRUE(LegitDoubleString("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011234."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
49 EXPECT_TRUE(LegitDoubleString("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001123456"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
50 EXPECT_TRUE(LegitDoubleString("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001123456000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000112345000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011234565664565623456"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
51 EXPECT_TRUE(LegitDoubleString("1234."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
52 EXPECT_TRUE(LegitDoubleString(".0123"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
53 EXPECT_TRUE(LegitDoubleString(".123"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
54 EXPECT_TRUE(LegitDoubleString(".5"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
55 EXPECT_TRUE(LegitDoubleString("."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
56 EXPECT_TRUE(LegitDoubleString(""));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
57 EXPECT_TRUE(LegitDoubleString("0."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
58 EXPECT_TRUE(LegitDoubleString(".0"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
59
1166
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
60 EXPECT_TRUE(LegitDoubleString("1e-15"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
61 EXPECT_TRUE(LegitDoubleString("1E-15"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
62 EXPECT_TRUE(LegitDoubleString("0.31E-15"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
63 EXPECT_TRUE(LegitDoubleString(".0031E-15"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
64 EXPECT_TRUE(LegitDoubleString("1e-15"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
65 EXPECT_TRUE(LegitDoubleString("1E015"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
66 EXPECT_TRUE(LegitDoubleString("0.31E015"));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
67
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
68
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
69 EXPECT_FALSE(LegitDoubleString(".5f"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
70 EXPECT_FALSE(LegitDoubleString("\n.0031E015"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
71 EXPECT_FALSE(LegitDoubleString(".05f"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
72 EXPECT_FALSE(LegitDoubleString(" 1 2 "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
73 EXPECT_FALSE(LegitDoubleString(" 0.12\t"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
74 EXPECT_FALSE(LegitDoubleString(" 0.12"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
75 EXPECT_FALSE(LegitDoubleString("0.12\t"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
76 EXPECT_FALSE(LegitDoubleString("12\t"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
77 EXPECT_FALSE(LegitDoubleString(".01 23"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
78 EXPECT_FALSE(LegitDoubleString(". 123"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
79 EXPECT_FALSE(LegitDoubleString(".5 "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
80 EXPECT_FALSE(LegitDoubleString(" ."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
81 EXPECT_FALSE(LegitDoubleString("\n0."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
82 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
83
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
84 TEST(GenericToolbox, TestLegitIntegerString)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
85 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
86 using OrthancStone::GenericToolbox::LegitIntegerString;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
87
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
88 EXPECT_TRUE(LegitIntegerString("1234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
89 EXPECT_TRUE(LegitIntegerString("234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
90 EXPECT_TRUE(LegitIntegerString("01234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
91 EXPECT_TRUE(LegitIntegerString("12340"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
92 EXPECT_TRUE(LegitIntegerString("0000000000000011234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
93 EXPECT_TRUE(LegitIntegerString("00000000000000011234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
94 EXPECT_TRUE(LegitIntegerString("00000000000011234"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
95 EXPECT_TRUE(LegitIntegerString("112340000000000010"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
96 EXPECT_TRUE(LegitIntegerString("0000000000001123456"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
97 EXPECT_TRUE(LegitIntegerString("000000000000112345604565665623456"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
98 EXPECT_TRUE(LegitIntegerString(""));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
99 EXPECT_TRUE(LegitIntegerString("0"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
100 EXPECT_TRUE(LegitIntegerString("00000"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
102 EXPECT_FALSE(LegitIntegerString(".5f"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
103 EXPECT_FALSE(LegitIntegerString("1e-15"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
104 EXPECT_FALSE(LegitIntegerString("1E-15"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
105 EXPECT_FALSE(LegitIntegerString("0.31E-15"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
106 EXPECT_FALSE(LegitIntegerString(".0031E-15"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
107 EXPECT_FALSE(LegitIntegerString("1e-15"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
108 EXPECT_FALSE(LegitIntegerString("1E015"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
109 EXPECT_FALSE(LegitIntegerString("0.31E015"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
110 EXPECT_FALSE(LegitIntegerString("\n.0031E015"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
111 EXPECT_FALSE(LegitIntegerString(".05f"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
112 EXPECT_FALSE(LegitIntegerString(" 1 2 "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
113 EXPECT_FALSE(LegitIntegerString(" 0.12\t"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
114 EXPECT_FALSE(LegitIntegerString(" 0.12"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
115 EXPECT_FALSE(LegitIntegerString("0.12\t"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
116 EXPECT_FALSE(LegitIntegerString("12\t"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
117 EXPECT_FALSE(LegitIntegerString(".01 23"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
118 EXPECT_FALSE(LegitIntegerString(". 123"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
119 EXPECT_FALSE(LegitIntegerString(".5 "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
120 EXPECT_FALSE(LegitIntegerString(" ."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
121 EXPECT_FALSE(LegitIntegerString("\n0."));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
122 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
123
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
124
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
125 /**
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
126 * The very long "TestStringToDouble" was split in 4 parts. Otherwise,
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
127 * while running in WebAssembly (at least in "Debug" CMAKE_BUILD_TYPE
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
128 * with Emscripten 2.0.0), one get error "failed to asynchronously
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
129 * prepare wasm: CompileError: WebAssembly.instantiate(): Compiling
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
130 * function [...] failed: local count too large". This is because the
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
131 * function is too long.
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
132 **/
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
133 TEST(GenericToolbox, TestStringToDouble1)
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
134 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
135 using OrthancStone::GenericToolbox::StringToDouble;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
136
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
137 const double TOLERANCE = 0.00000000000001;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
138 double r = 0.0;
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
139
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
140 {
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
141 bool ok = StringToDouble(r, "0.0001");
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
142 EXPECT_TRUE(ok);
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
143 EXPECT_NEAR(0.0001, r, TOLERANCE);
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
144 }
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
145
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
146 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
147 bool ok = StringToDouble(r, "0.0001");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
148 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
149 EXPECT_NEAR(0.0001, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
150 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
151
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
152 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
153 bool ok = StringToDouble(r, "-0.50217817069333900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
154 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
155 EXPECT_NEAR(-0.50217817069333900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
156 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
157
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
158 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
159 bool ok = StringToDouble(r, "5.96770274105399000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
160 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
161 EXPECT_NEAR(5.96770274105399000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
162 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
163
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
164 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
165 bool ok = StringToDouble(r, "-1.49521088758962000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
166 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
167 EXPECT_NEAR(-1.49521088758962000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
168 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
169
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
170 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
171 bool ok = StringToDouble(r, "-2.06201839227379000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
172 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
173 EXPECT_NEAR(-2.06201839227379000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
174 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
175
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
176 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
177 bool ok = StringToDouble(r, "5.33360671999703000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
178 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
179 EXPECT_NEAR(5.33360671999703000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
180 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
181
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
182 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
183 bool ok = StringToDouble(r, "-1.07639304839166000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
184 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
185 EXPECT_NEAR(-1.07639304839166000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
186 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
187
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
188 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
189 bool ok = StringToDouble(r, "0.19287806240687400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
190 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
191 EXPECT_NEAR(0.19287806240687400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
192 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
193
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
194 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
195 bool ok = StringToDouble(r, "2.44207082838626000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
196 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
197 EXPECT_NEAR(2.44207082838626000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
198 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
199
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
200 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
201 bool ok = StringToDouble(r, "-0.84619708036551800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
202 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
203 EXPECT_NEAR(-0.84619708036551800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
204 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
205
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
206 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
207 bool ok = StringToDouble(r, "-1.58091726580509000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
208 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
209 EXPECT_NEAR(-1.58091726580509000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
210 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
211
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
212 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
213 bool ok = StringToDouble(r, "1.18073661859763000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
214 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
215 EXPECT_NEAR(1.18073661859763000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
216 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
217
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
218 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
219 bool ok = StringToDouble(r, "1.33045549786387000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
220 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
221 EXPECT_NEAR(1.33045549786387000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
222 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
223
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
224 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
225 bool ok = StringToDouble(r, "-3.00272400249168000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
226 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
227 EXPECT_NEAR(-3.00272400249168000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
228 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
229
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
230 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
231 bool ok = StringToDouble(r, "4.95337715877137000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
232 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
233 EXPECT_NEAR(4.95337715877137000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
234 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
235
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
236 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
237 bool ok = StringToDouble(r, "8.95930523708542000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
238 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
239 EXPECT_NEAR(8.95930523708542000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
240 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
241
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
242 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
243 bool ok = StringToDouble(r, "-3.78847681371515000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
244 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
245 EXPECT_NEAR(-3.78847681371515000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
246 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
247
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
248 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
249 bool ok = StringToDouble(r, "-3.23601540702684000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
250 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
251 EXPECT_NEAR(-3.23601540702684000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
252 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
253
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
254 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
255 bool ok = StringToDouble(r, "3.40676557671367000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
256 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
257 EXPECT_NEAR(3.40676557671367000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
258 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
259
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
260 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
261 bool ok = StringToDouble(r, "-0.36110595246212700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
262 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
263 EXPECT_NEAR(-0.36110595246212700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
264 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
265
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
266 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
267 bool ok = StringToDouble(r, "-1.10430292945232000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
268 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
269 EXPECT_NEAR(-1.10430292945232000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
270 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
271
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
272 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
273 bool ok = StringToDouble(r, "-0.34892053003478100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
274 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
275 EXPECT_NEAR(-0.34892053003478100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
276 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
277
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
278 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
279 bool ok = StringToDouble(r, "-3.86871791690589000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
280 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
281 EXPECT_NEAR(-3.86871791690589000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
282 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
283
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
284 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
285 bool ok = StringToDouble(r, "-0.23477571361979100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
286 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
287 EXPECT_NEAR(-0.23477571361979100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
288 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
289
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
290 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
291 bool ok = StringToDouble(r, "4.17723077954105000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
292 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
293 EXPECT_NEAR(4.17723077954105000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
294 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
295
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
296 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
297 bool ok = StringToDouble(r, "-5.55533339430731000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
298 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
299 EXPECT_NEAR(-5.55533339430731000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
300 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
301
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
302 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
303 bool ok = StringToDouble(r, "1.39193581722996000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
304 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
305 EXPECT_NEAR(1.39193581722996000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
306 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
307
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
308 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
309 bool ok = StringToDouble(r, "-1.98290538242799000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
310 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
311 EXPECT_NEAR(-1.98290538242799000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
312 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
313
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
314 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
315 bool ok = StringToDouble(r, "-1.39701448187652000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
316 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
317 EXPECT_NEAR(-1.39701448187652000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
318 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
319
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
320 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
321 bool ok = StringToDouble(r, "-2.97546141973594000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
322 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
323 EXPECT_NEAR(-2.97546141973594000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
324 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
325
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
326 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
327 bool ok = StringToDouble(r, "1.33870401451186000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
328 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
329 EXPECT_NEAR(1.33870401451186000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
330 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
331
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
332 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
333 bool ok = StringToDouble(r, "2.15061799435527000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
334 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
335 EXPECT_NEAR(2.15061799435527000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
336 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
337
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
338 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
339 bool ok = StringToDouble(r, "2.78705704115137000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
340 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
341 EXPECT_NEAR(2.78705704115137000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
342 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
343
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
344 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
345 bool ok = StringToDouble(r, "1.56210637202493000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
346 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
347 EXPECT_NEAR(1.56210637202493000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
348 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
349
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
350 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
351 bool ok = StringToDouble(r, "-8.86139731673717000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
352 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
353 EXPECT_NEAR(-8.86139731673717000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
354 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
355
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
356 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
357 bool ok = StringToDouble(r, "3.63169336137189000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
358 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
359 EXPECT_NEAR(3.63169336137189000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
360 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
361
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
362 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
363 bool ok = StringToDouble(r, "-2.93978481744645000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
364 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
365 EXPECT_NEAR(-2.93978481744645000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
366 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
367
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
368 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
369 bool ok = StringToDouble(r, "-3.49952444717512000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
370 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
371 EXPECT_NEAR(-3.49952444717512000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
372 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
373
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
374 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
375 bool ok = StringToDouble(r, "-1.32659301981935000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
376 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
377 EXPECT_NEAR(-1.32659301981935000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
378 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
379
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
380 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
381 bool ok = StringToDouble(r, "2.59514994228045000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
382 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
383 EXPECT_NEAR(2.59514994228045000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
384 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
385
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
386 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
387 bool ok = StringToDouble(r, "-3.66422938111626000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
388 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
389 EXPECT_NEAR(-3.66422938111626000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
390 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
391
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
392 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
393 bool ok = StringToDouble(r, "-2.70431239624531000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
394 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
395 EXPECT_NEAR(-2.70431239624531000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
396 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
397
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
398 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
399 bool ok = StringToDouble(r, "1.22698147029468000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
400 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
401 EXPECT_NEAR(1.22698147029468000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
402 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
403
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
404 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
405 bool ok = StringToDouble(r, "-0.90761005965631200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
406 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
407 EXPECT_NEAR(-0.90761005965631200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
408 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
409
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
410 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
411 bool ok = StringToDouble(r, "-5.43368952065867000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
412 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
413 EXPECT_NEAR(-5.43368952065867000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
414 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
415
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
416 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
417 bool ok = StringToDouble(r, "2.79510450171595000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
418 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
419 EXPECT_NEAR(2.79510450171595000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
420 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
421
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
422 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
423 bool ok = StringToDouble(r, "-2.94081596072268000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
424 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
425 EXPECT_NEAR(-2.94081596072268000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
426 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
427
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
428 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
429 bool ok = StringToDouble(r, "0.42019476309409300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
430 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
431 EXPECT_NEAR(0.42019476309409300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
432 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
433
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
434 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
435 bool ok = StringToDouble(r, "-3.70663631642677000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
436 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
437 EXPECT_NEAR(-3.70663631642677000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
438 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
439
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
440 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
441 bool ok = StringToDouble(r, "-0.06601188243267550000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
442 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
443 EXPECT_NEAR(-0.06601188243267550000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
444 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
445
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
446 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
447 bool ok = StringToDouble(r, "0.79928310771909400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
448 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
449 EXPECT_NEAR(0.79928310771909400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
450 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
451
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
452 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
453 bool ok = StringToDouble(r, "1.65577800860582000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
454 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
455 EXPECT_NEAR(1.65577800860582000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
456 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
457
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
458 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
459 bool ok = StringToDouble(r, "2.62187216187698000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
460 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
461 EXPECT_NEAR(2.62187216187698000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
462 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
463
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
464 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
465 bool ok = StringToDouble(r, "0.95596656702613300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
466 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
467 EXPECT_NEAR(0.95596656702613300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
468 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
469
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
470 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
471 bool ok = StringToDouble(r, "-4.14349841191783000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
472 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
473 EXPECT_NEAR(-4.14349841191783000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
474 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
475
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
476 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
477 bool ok = StringToDouble(r, "-2.23732575725115000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
478 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
479 EXPECT_NEAR(-2.23732575725115000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
480 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
481
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
482 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
483 bool ok = StringToDouble(r, "4.02522229405373000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
484 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
485 EXPECT_NEAR(4.02522229405373000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
486 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
487
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
488 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
489 bool ok = StringToDouble(r, "-0.43364697172459700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
490 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
491 EXPECT_NEAR(-0.43364697172459700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
492 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
493
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
494 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
495 bool ok = StringToDouble(r, "1.39612114240613000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
496 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
497 EXPECT_NEAR(1.39612114240613000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
498 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
499
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
500 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
501 bool ok = StringToDouble(r, "-0.87981321512563200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
502 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
503 EXPECT_NEAR(-0.87981321512563200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
504 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
505
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
506 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
507 bool ok = StringToDouble(r, "0.47459557296809400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
508 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
509 EXPECT_NEAR(0.47459557296809400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
510 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
511
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
512 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
513 bool ok = StringToDouble(r, "1.10534326849558000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
514 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
515 EXPECT_NEAR(1.10534326849558000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
516 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
517
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
518 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
519 bool ok = StringToDouble(r, "-1.48420825457170000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
520 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
521 EXPECT_NEAR(-1.48420825457170000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
522 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
523
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
524 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
525 bool ok = StringToDouble(r, "-0.98994851457562000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
526 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
527 EXPECT_NEAR(-0.98994851457562000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
528 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
529
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
530 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
531 bool ok = StringToDouble(r, "-0.18550683277018200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
532 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
533 EXPECT_NEAR(-0.18550683277018200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
534 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
535
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
536 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
537 bool ok = StringToDouble(r, "0.79951199056989300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
538 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
539 EXPECT_NEAR(0.79951199056989300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
540 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
541
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
542 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
543 bool ok = StringToDouble(r, "-2.92573951347502000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
544 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
545 EXPECT_NEAR(-2.92573951347502000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
546 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
547
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
548 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
549 bool ok = StringToDouble(r, "2.46138476058529000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
550 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
551 EXPECT_NEAR(2.46138476058529000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
552 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
553
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
554 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
555 bool ok = StringToDouble(r, "2.34518431607109000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
556 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
557 EXPECT_NEAR(2.34518431607109000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
558 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
559
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
560 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
561 bool ok = StringToDouble(r, "1.33372656820168000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
562 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
563 EXPECT_NEAR(1.33372656820168000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
564 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
565
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
566 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
567 bool ok = StringToDouble(r, "-0.16931283159188600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
568 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
569 EXPECT_NEAR(-0.16931283159188600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
570 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
571
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
572 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
573 bool ok = StringToDouble(r, "-4.97223922802124000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
574 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
575 EXPECT_NEAR(-4.97223922802124000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
576 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
577
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
578 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
579 bool ok = StringToDouble(r, "2.48394627491386000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
580 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
581 EXPECT_NEAR(2.48394627491386000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
582 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
583
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
584 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
585 bool ok = StringToDouble(r, "0.88861737945960600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
586 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
587 EXPECT_NEAR(0.88861737945960600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
588 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
589
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
590 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
591 bool ok = StringToDouble(r, "-2.85676190081840000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
592 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
593 EXPECT_NEAR(-2.85676190081840000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
594 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
595
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
596 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
597 bool ok = StringToDouble(r, "1.54459170417494000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
598 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
599 EXPECT_NEAR(1.54459170417494000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
600 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
601
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
602 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
603 bool ok = StringToDouble(r, "0.16447870264995300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
604 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
605 EXPECT_NEAR(0.16447870264995300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
606 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
607
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
608 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
609 bool ok = StringToDouble(r, "-2.35795535411029000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
610 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
611 EXPECT_NEAR(-2.35795535411029000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
612 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
613
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
614 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
615 bool ok = StringToDouble(r, "0.29431172135530300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
616 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
617 EXPECT_NEAR(0.29431172135530300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
618 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
619
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
620 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
621 bool ok = StringToDouble(r, "-2.96558311276619000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
622 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
623 EXPECT_NEAR(-2.96558311276619000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
624 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
625
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
626 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
627 bool ok = StringToDouble(r, "2.81681460880669000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
628 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
629 EXPECT_NEAR(2.81681460880669000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
630 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
631
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
632 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
633 bool ok = StringToDouble(r, "-4.20509941503951000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
634 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
635 EXPECT_NEAR(-4.20509941503951000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
636 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
637
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
638 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
639 bool ok = StringToDouble(r, "1.72765905661257000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
640 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
641 EXPECT_NEAR(1.72765905661257000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
642 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
643
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
644 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
645 bool ok = StringToDouble(r, "0.48788237089759900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
646 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
647 EXPECT_NEAR(0.48788237089759900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
648 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
649
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
650 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
651 bool ok = StringToDouble(r, "-1.24947907141902000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
652 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
653 EXPECT_NEAR(-1.24947907141902000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
654 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
655
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
656 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
657 bool ok = StringToDouble(r, "1.59005387432649000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
658 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
659 EXPECT_NEAR(1.59005387432649000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
660 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
661
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
662 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
663 bool ok = StringToDouble(r, "1.30370570926522000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
664 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
665 EXPECT_NEAR(1.30370570926522000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
666 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
667
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
668 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
669 bool ok = StringToDouble(r, "1.73638792046556000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
670 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
671 EXPECT_NEAR(1.73638792046556000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
672 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
673
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
674 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
675 bool ok = StringToDouble(r, "-0.87789934199453800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
676 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
677 EXPECT_NEAR(-0.87789934199453800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
678 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
679
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
680 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
681 bool ok = StringToDouble(r, "-2.51989255137937000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
682 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
683 EXPECT_NEAR(-2.51989255137937000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
684 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
685
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
686 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
687 bool ok = StringToDouble(r, "-1.76305470679095000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
688 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
689 EXPECT_NEAR(-1.76305470679095000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
690 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
691
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
692 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
693 bool ok = StringToDouble(r, "1.86920962997342000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
694 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
695 EXPECT_NEAR(1.86920962997342000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
696 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
697
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
698 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
699 bool ok = StringToDouble(r, "2.91313411328065000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
700 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
701 EXPECT_NEAR(2.91313411328065000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
702 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
703
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
704 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
705 bool ok = StringToDouble(r, "-1.73463683758381000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
706 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
707 EXPECT_NEAR(-1.73463683758381000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
708 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
709
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
710 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
711 bool ok = StringToDouble(r, "-0.84273889473222500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
712 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
713 EXPECT_NEAR(-0.84273889473222500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
714 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
715
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
716 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
717 bool ok = StringToDouble(r, "-0.87403925546477700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
718 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
719 EXPECT_NEAR(-0.87403925546477700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
720 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
721
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
722 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
723 bool ok = StringToDouble(r, "-4.36964126011414000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
724 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
725 EXPECT_NEAR(-4.36964126011414000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
726 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
727
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
728 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
729 bool ok = StringToDouble(r, "2.02726746648694000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
730 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
731 EXPECT_NEAR(2.02726746648694000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
732 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
733
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
734 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
735 bool ok = StringToDouble(r, "2.50557053097483000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
736 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
737 EXPECT_NEAR(2.50557053097483000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
738 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
739
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
740 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
741 bool ok = StringToDouble(r, "-1.56453106035648000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
742 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
743 EXPECT_NEAR(-1.56453106035648000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
744 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
745
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
746 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
747 bool ok = StringToDouble(r, "1.61890516636808000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
748 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
749 EXPECT_NEAR(1.61890516636808000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
750 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
751
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
752 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
753 bool ok = StringToDouble(r, "-3.37767835277405000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
754 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
755 EXPECT_NEAR(-3.37767835277405000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
756 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
757
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
758 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
759 bool ok = StringToDouble(r, "0.90511255527429100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
760 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
761 EXPECT_NEAR(0.90511255527429100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
762 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
763
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
764 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
765 bool ok = StringToDouble(r, "2.05929345122920000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
766 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
767 EXPECT_NEAR(2.05929345122920000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
768 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
769
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
770 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
771 bool ok = StringToDouble(r, "1.21311454144036000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
772 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
773 EXPECT_NEAR(1.21311454144036000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
774 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
775
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
776 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
777 bool ok = StringToDouble(r, "-7.79062987304713000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
778 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
779 EXPECT_NEAR(-7.79062987304713000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
780 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
781
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
782 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
783 bool ok = StringToDouble(r, "5.21365525338096000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
784 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
785 EXPECT_NEAR(5.21365525338096000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
786 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
787
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
788 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
789 bool ok = StringToDouble(r, "4.28348152906416000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
790 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
791 EXPECT_NEAR(4.28348152906416000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
792 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
793
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
794 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
795 bool ok = StringToDouble(r, "1.06610409505261000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
796 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
797 EXPECT_NEAR(1.06610409505261000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
798 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
799
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
800 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
801 bool ok = StringToDouble(r, "-0.35302095923550200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
802 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
803 EXPECT_NEAR(-0.35302095923550200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
804 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
805
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
806 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
807 bool ok = StringToDouble(r, "2.90818370281786000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
808 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
809 EXPECT_NEAR(2.90818370281786000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
810 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
811
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
812 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
813 bool ok = StringToDouble(r, "5.32125632829404000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
814 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
815 EXPECT_NEAR(5.32125632829404000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
816 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
817
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
818 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
819 bool ok = StringToDouble(r, "-0.19461589112926800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
820 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
821 EXPECT_NEAR(-0.19461589112926800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
822 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
823
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
824 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
825 bool ok = StringToDouble(r, "-0.13206147532649300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
826 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
827 EXPECT_NEAR(-0.13206147532649300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
828 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
829
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
830 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
831 bool ok = StringToDouble(r, "2.90445975568758000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
832 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
833 EXPECT_NEAR(2.90445975568758000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
834 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
835
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
836 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
837 bool ok = StringToDouble(r, "2.09055301456874000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
838 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
839 EXPECT_NEAR(2.09055301456874000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
840 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
841
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
842 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
843 bool ok = StringToDouble(r, "-0.94747584830211900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
844 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
845 EXPECT_NEAR(-0.94747584830211900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
846 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
847
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
848 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
849 bool ok = StringToDouble(r, "-1.87479371073786000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
850 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
851 EXPECT_NEAR(-1.87479371073786000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
852 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
853
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
854 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
855 bool ok = StringToDouble(r, "-5.77693922561847000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
856 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
857 EXPECT_NEAR(-5.77693922561847000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
858 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
859
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
860 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
861 bool ok = StringToDouble(r, "1.43857452366099000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
862 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
863 EXPECT_NEAR(1.43857452366099000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
864 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
865
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
866 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
867 bool ok = StringToDouble(r, "1.32571155407419000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
868 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
869 EXPECT_NEAR(1.32571155407419000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
870 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
871
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
872 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
873 bool ok = StringToDouble(r, "0.02598140411007480000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
874 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
875 EXPECT_NEAR(0.02598140411007480000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
876 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
877
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
878 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
879 bool ok = StringToDouble(r, "1.63213858956142000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
880 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
881 EXPECT_NEAR(1.63213858956142000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
882 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
883
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
884 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
885 bool ok = StringToDouble(r, "2.87199046737281000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
886 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
887 EXPECT_NEAR(2.87199046737281000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
888 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
889
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
890 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
891 bool ok = StringToDouble(r, "-1.51485641768478000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
892 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
893 EXPECT_NEAR(-1.51485641768478000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
894 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
895
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
896 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
897 bool ok = StringToDouble(r, "0.64286402800302700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
898 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
899 EXPECT_NEAR(0.64286402800302700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
900 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
901
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
902 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
903 bool ok = StringToDouble(r, "2.47677130142230000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
904 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
905 EXPECT_NEAR(2.47677130142230000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
906 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
907
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
908 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
909 bool ok = StringToDouble(r, "2.39498987162520000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
910 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
911 EXPECT_NEAR(2.39498987162520000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
912 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
913
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
914 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
915 bool ok = StringToDouble(r, "0.97846593865349600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
916 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
917 EXPECT_NEAR(0.97846593865349600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
918 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
919
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
920 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
921 bool ok = StringToDouble(r, "3.38696988049949000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
922 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
923 EXPECT_NEAR(3.38696988049949000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
924 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
925
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
926 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
927 bool ok = StringToDouble(r, "0.99716557343840900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
928 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
929 EXPECT_NEAR(0.99716557343840900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
930 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
931
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
932 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
933 bool ok = StringToDouble(r, "-0.26983285318203300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
934 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
935 EXPECT_NEAR(-0.26983285318203300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
936 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
937
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
938 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
939 bool ok = StringToDouble(r, "0.02818282704670500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
940 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
941 EXPECT_NEAR(0.02818282704670500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
942 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
943
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
944 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
945 bool ok = StringToDouble(r, "-3.33995460770471000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
946 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
947 EXPECT_NEAR(-3.33995460770471000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
948 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
949
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
950 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
951 bool ok = StringToDouble(r, "-1.90961343273142000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
952 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
953 EXPECT_NEAR(-1.90961343273142000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
954 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
955
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
956 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
957 bool ok = StringToDouble(r, "-1.70545858631691000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
958 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
959 EXPECT_NEAR(-1.70545858631691000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
960 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
961
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
962 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
963 bool ok = StringToDouble(r, "-2.99837322296447000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
964 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
965 EXPECT_NEAR(-2.99837322296447000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
966 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
967
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
968 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
969 bool ok = StringToDouble(r, "2.52931499785106000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
970 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
971 EXPECT_NEAR(2.52931499785106000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
972 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
973
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
974 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
975 bool ok = StringToDouble(r, "1.50600351005455000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
976 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
977 EXPECT_NEAR(1.50600351005455000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
978 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
979
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
980 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
981 bool ok = StringToDouble(r, "-0.83191012798055900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
982 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
983 EXPECT_NEAR(-0.83191012798055900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
984 }
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
985 }
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
986
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
987 TEST(GenericToolbox, TestStringToDouble2)
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
988 {
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
989 using OrthancStone::GenericToolbox::StringToDouble;
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
990
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
991 const double TOLERANCE = 0.00000000000001;
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
992 double r = 0.0;
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
993
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
994 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
995 bool ok = StringToDouble(r, "2.58090819604341000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
996 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
997 EXPECT_NEAR(2.58090819604341000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
998 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
999
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1000 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1001 bool ok = StringToDouble(r, "-1.95182376827953000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1002 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1003 EXPECT_NEAR(-1.95182376827953000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1004 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1005
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1006 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1007 bool ok = StringToDouble(r, "-5.04199841193785000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1008 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1009 EXPECT_NEAR(-5.04199841193785000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1010 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1011
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1012 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1013 bool ok = StringToDouble(r, "-4.17938850513021000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1014 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1015 EXPECT_NEAR(-4.17938850513021000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1016 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1017
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1018 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1019 bool ok = StringToDouble(r, "-1.66797071567664000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1020 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1021 EXPECT_NEAR(-1.66797071567664000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1022 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1023
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1024 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1025 bool ok = StringToDouble(r, "3.37221015583147000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1026 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1027 EXPECT_NEAR(3.37221015583147000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1028 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1029
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1030 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1031 bool ok = StringToDouble(r, "-4.75673862000485000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1032 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1033 EXPECT_NEAR(-4.75673862000485000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1034 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1035
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1036 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1037 bool ok = StringToDouble(r, "0.79003986824116500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1038 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1039 EXPECT_NEAR(0.79003986824116500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1040 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1041
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1042 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1043 bool ok = StringToDouble(r, "-3.86020949016507000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1044 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1045 EXPECT_NEAR(-3.86020949016507000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1046 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1047
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1048 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1049 bool ok = StringToDouble(r, "-2.14082258481500000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1050 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1051 EXPECT_NEAR(-2.14082258481500000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1052 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1053
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1054 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1055 bool ok = StringToDouble(r, "-3.71685664840859000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1056 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1057 EXPECT_NEAR(-3.71685664840859000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1058 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1059
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1060 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1061 bool ok = StringToDouble(r, "-0.93998389083824300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1062 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1063 EXPECT_NEAR(-0.93998389083824300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1064 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1065
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1066 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1067 bool ok = StringToDouble(r, "2.77244357996158000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1068 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1069 EXPECT_NEAR(2.77244357996158000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1070 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1071
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1072 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1073 bool ok = StringToDouble(r, "-0.10595524850565900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1074 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1075 EXPECT_NEAR(-0.10595524850565900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1076 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1077
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1078 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1079 bool ok = StringToDouble(r, "3.69799635213612000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1080 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1081 EXPECT_NEAR(3.69799635213612000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1082 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1083
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1084 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1085 bool ok = StringToDouble(r, "-0.57971250175452400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1086 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1087 EXPECT_NEAR(-0.57971250175452400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1088 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1089
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1090 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1091 bool ok = StringToDouble(r, "-0.92766866933807100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1092 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1093 EXPECT_NEAR(-0.92766866933807100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1094 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1095
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1096 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1097 bool ok = StringToDouble(r, "-5.46991620588858000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1098 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1099 EXPECT_NEAR(-5.46991620588858000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1100 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1102 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1103 bool ok = StringToDouble(r, "5.94569644123488000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1104 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1105 EXPECT_NEAR(5.94569644123488000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1106 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1107
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1108 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1109 bool ok = StringToDouble(r, "4.18859094010287000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1110 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1111 EXPECT_NEAR(4.18859094010287000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1112 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1113
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1114 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1115 bool ok = StringToDouble(r, "3.03213167005865000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1116 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1117 EXPECT_NEAR(3.03213167005865000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1118 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1119
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1120 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1121 bool ok = StringToDouble(r, "8.81754146434609000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1122 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1123 EXPECT_NEAR(8.81754146434609000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1124 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1125
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1126 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1127 bool ok = StringToDouble(r, "-0.75897430327076600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1128 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1129 EXPECT_NEAR(-0.75897430327076600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1130 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1131
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1132 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1133 bool ok = StringToDouble(r, "1.80047028975912000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1134 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1135 EXPECT_NEAR(1.80047028975912000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1136 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1137
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1138 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1139 bool ok = StringToDouble(r, "-0.00529573224131364000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1140 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1141 EXPECT_NEAR(-0.00529573224131364000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1142 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1143
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1144 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1145 bool ok = StringToDouble(r, "2.71024073322357000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1146 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1147 EXPECT_NEAR(2.71024073322357000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1148 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1149
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1150 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1151 bool ok = StringToDouble(r, "1.60642130185119000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1152 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1153 EXPECT_NEAR(1.60642130185119000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1154 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1155
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1156 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1157 bool ok = StringToDouble(r, "5.09793780927960000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1158 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1159 EXPECT_NEAR(5.09793780927960000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1160 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1161
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1162 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1163 bool ok = StringToDouble(r, "-3.18560965637846000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1164 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1165 EXPECT_NEAR(-3.18560965637846000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1166 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1167
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1168 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1169 bool ok = StringToDouble(r, "-3.13078526893487000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1170 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1171 EXPECT_NEAR(-3.13078526893487000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1172 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1173
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1174 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1175 bool ok = StringToDouble(r, "-4.19951899215254000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1176 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1177 EXPECT_NEAR(-4.19951899215254000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1178 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1179
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1180 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1181 bool ok = StringToDouble(r, "-2.81885534502479000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1182 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1183 EXPECT_NEAR(-2.81885534502479000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1184 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1185
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1186 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1187 bool ok = StringToDouble(r, "1.00480638980341000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1188 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1189 EXPECT_NEAR(1.00480638980341000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1190 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1191
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1192 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1193 bool ok = StringToDouble(r, "-0.35315675289406200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1194 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1195 EXPECT_NEAR(-0.35315675289406200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1196 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1197
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1198 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1199 bool ok = StringToDouble(r, "-1.29812812014442000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1200 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1201 EXPECT_NEAR(-1.29812812014442000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1202 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1203
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1204 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1205 bool ok = StringToDouble(r, "-2.98878626408816000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1206 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1207 EXPECT_NEAR(-2.98878626408816000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1208 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1209
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1210 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1211 bool ok = StringToDouble(r, "1.34644737073484000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1212 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1213 EXPECT_NEAR(1.34644737073484000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1214 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1215
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1216 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1217 bool ok = StringToDouble(r, "-3.37478492823657000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1218 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1219 EXPECT_NEAR(-3.37478492823657000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1220 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1221
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1222 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1223 bool ok = StringToDouble(r, "-2.97205178784195000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1224 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1225 EXPECT_NEAR(-2.97205178784195000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1226 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1227
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1228 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1229 bool ok = StringToDouble(r, "-4.65165003646427000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1230 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1231 EXPECT_NEAR(-4.65165003646427000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1232 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1233
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1234 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1235 bool ok = StringToDouble(r, "4.89236175545723000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1236 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1237 EXPECT_NEAR(4.89236175545723000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1238 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1239
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1240 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1241 bool ok = StringToDouble(r, "3.80366872242454000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1242 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1243 EXPECT_NEAR(3.80366872242454000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1244 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1245
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1246 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1247 bool ok = StringToDouble(r, "7.65465855719486000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1248 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1249 EXPECT_NEAR(7.65465855719486000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1250 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1251
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1252 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1253 bool ok = StringToDouble(r, "-0.51455943741659600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1254 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1255 EXPECT_NEAR(-0.51455943741659600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1256 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1257
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1258 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1259 bool ok = StringToDouble(r, "5.14337541345649000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1260 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1261 EXPECT_NEAR(5.14337541345649000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1262 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1263
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1264 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1265 bool ok = StringToDouble(r, "1.06909574569091000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1266 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1267 EXPECT_NEAR(1.06909574569091000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1268 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1269
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1270 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1271 bool ok = StringToDouble(r, "-1.07698497525470000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1272 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1273 EXPECT_NEAR(-1.07698497525470000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1274 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1275
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1276 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1277 bool ok = StringToDouble(r, "2.04223854975535000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1278 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1279 EXPECT_NEAR(2.04223854975535000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1280 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1281
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1282 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1283 bool ok = StringToDouble(r, "1.46422724459484000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1284 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1285 EXPECT_NEAR(1.46422724459484000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1286 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1287
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1288 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1289 bool ok = StringToDouble(r, "-1.65888981424971000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1290 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1291 EXPECT_NEAR(-1.65888981424971000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1292 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1293
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1294 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1295 bool ok = StringToDouble(r, "-7.10193673069906000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1296 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1297 EXPECT_NEAR(-7.10193673069906000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1298 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1299
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1300 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1301 bool ok = StringToDouble(r, "-0.77638222509466500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1302 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1303 EXPECT_NEAR(-0.77638222509466500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1304 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1305
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1306 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1307 bool ok = StringToDouble(r, "2.15543610545042000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1308 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1309 EXPECT_NEAR(2.15543610545042000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1310 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1311
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1312 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1313 bool ok = StringToDouble(r, "2.51787760900314000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1314 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1315 EXPECT_NEAR(2.51787760900314000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1316 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1317
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1318 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1319 bool ok = StringToDouble(r, "-1.09022915694655000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1320 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1321 EXPECT_NEAR(-1.09022915694655000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1322 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1323
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1324 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1325 bool ok = StringToDouble(r, "-1.41861013154040000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1326 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1327 EXPECT_NEAR(-1.41861013154040000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1328 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1329
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1330 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1331 bool ok = StringToDouble(r, "-1.40227565288403000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1332 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1333 EXPECT_NEAR(-1.40227565288403000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1334 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1335
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1336 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1337 bool ok = StringToDouble(r, "-0.44321592617247400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1338 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1339 EXPECT_NEAR(-0.44321592617247400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1340 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1341
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1342 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1343 bool ok = StringToDouble(r, "-2.34090258417639000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1344 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1345 EXPECT_NEAR(-2.34090258417639000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1346 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1347
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1348 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1349 bool ok = StringToDouble(r, "0.54291265629528700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1350 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1351 EXPECT_NEAR(0.54291265629528700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1352 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1353
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1354 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1355 bool ok = StringToDouble(r, "1.70700051509186000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1356 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1357 EXPECT_NEAR(1.70700051509186000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1358 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1359
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1360 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1361 bool ok = StringToDouble(r, "-6.55072864947955000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1362 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1363 EXPECT_NEAR(-6.55072864947955000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1364 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1365
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1366 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1367 bool ok = StringToDouble(r, "-1.96741942560520000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1368 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1369 EXPECT_NEAR(-1.96741942560520000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1370 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1371
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1372 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1373 bool ok = StringToDouble(r, "3.55202552301084000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1374 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1375 EXPECT_NEAR(3.55202552301084000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1376 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1377
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1378 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1379 bool ok = StringToDouble(r, "0.36133250863907300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1380 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1381 EXPECT_NEAR(0.36133250863907300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1382 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1383
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1384 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1385 bool ok = StringToDouble(r, "-1.46513564511238000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1386 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1387 EXPECT_NEAR(-1.46513564511238000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1388 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1389
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1390 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1391 bool ok = StringToDouble(r, "1.97424909475891000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1392 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1393 EXPECT_NEAR(1.97424909475891000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1394 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1395
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1396 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1397 bool ok = StringToDouble(r, "0.87005014400085000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1398 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1399 EXPECT_NEAR(0.87005014400085000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1400 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1401
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1402 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1403 bool ok = StringToDouble(r, "-1.25552308785543000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1404 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1405 EXPECT_NEAR(-1.25552308785543000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1406 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1407
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1408 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1409 bool ok = StringToDouble(r, "-0.43365620710902500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1410 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1411 EXPECT_NEAR(-0.43365620710902500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1412 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1413
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1414 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1415 bool ok = StringToDouble(r, "1.17392137573999000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1416 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1417 EXPECT_NEAR(1.17392137573999000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1418 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1419
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1420 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1421 bool ok = StringToDouble(r, "-4.56870774575795000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1422 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1423 EXPECT_NEAR(-4.56870774575795000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1424 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1425
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1426 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1427 bool ok = StringToDouble(r, "0.07449225479459900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1428 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1429 EXPECT_NEAR(0.07449225479459900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1430 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1431
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1432 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1433 bool ok = StringToDouble(r, "5.25905472211571000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1434 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1435 EXPECT_NEAR(5.25905472211571000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1436 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1437
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1438 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1439 bool ok = StringToDouble(r, "-2.13708454690765000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1440 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1441 EXPECT_NEAR(-2.13708454690765000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1442 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1443
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1444 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1445 bool ok = StringToDouble(r, "0.08223808231444500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1446 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1447 EXPECT_NEAR(0.08223808231444500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1448 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1449
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1450 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1451 bool ok = StringToDouble(r, "-1.69624060459529000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1452 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1453 EXPECT_NEAR(-1.69624060459529000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1454 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1455
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1456 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1457 bool ok = StringToDouble(r, "4.87232652840742000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1458 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1459 EXPECT_NEAR(4.87232652840742000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1460 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1461
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1462 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1463 bool ok = StringToDouble(r, "-0.20739068103174300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1464 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1465 EXPECT_NEAR(-0.20739068103174300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1466 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1467
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1468 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1469 bool ok = StringToDouble(r, "-0.45449313279700600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1470 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1471 EXPECT_NEAR(-0.45449313279700600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1472 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1473
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1474 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1475 bool ok = StringToDouble(r, "-1.06604828436047000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1476 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1477 EXPECT_NEAR(-1.06604828436047000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1478 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1479
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1480 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1481 bool ok = StringToDouble(r, "0.16603807756896700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1482 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1483 EXPECT_NEAR(0.16603807756896700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1484 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1485
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1486 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1487 bool ok = StringToDouble(r, "6.56288534361719000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1488 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1489 EXPECT_NEAR(6.56288534361719000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1490 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1491
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1492 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1493 bool ok = StringToDouble(r, "1.28481655900710000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1494 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1495 EXPECT_NEAR(1.28481655900710000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1496 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1497
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1498 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1499 bool ok = StringToDouble(r, "0.79412040010646300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1500 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1501 EXPECT_NEAR(0.79412040010646300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1502 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1503
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1504 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1505 bool ok = StringToDouble(r, "-2.90088144503330000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1506 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1507 EXPECT_NEAR(-2.90088144503330000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1508 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1509
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1510 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1511 bool ok = StringToDouble(r, "-0.65278657648370200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1512 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1513 EXPECT_NEAR(-0.65278657648370200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1514 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1515
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1516 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1517 bool ok = StringToDouble(r, "-2.40305895338068000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1518 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1519 EXPECT_NEAR(-2.40305895338068000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1520 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1521
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1522 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1523 bool ok = StringToDouble(r, "1.07193308249503000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1524 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1525 EXPECT_NEAR(1.07193308249503000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1526 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1527
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1528 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1529 bool ok = StringToDouble(r, "0.83752112822253600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1530 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1531 EXPECT_NEAR(0.83752112822253600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1532 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1533
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1534 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1535 bool ok = StringToDouble(r, "-0.63174453257058400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1536 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1537 EXPECT_NEAR(-0.63174453257058400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1538 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1539
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1540 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1541 bool ok = StringToDouble(r, "1.80163760021425000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1542 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1543 EXPECT_NEAR(1.80163760021425000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1544 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1545
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1546 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1547 bool ok = StringToDouble(r, "-3.57922670044433000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1548 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1549 EXPECT_NEAR(-3.57922670044433000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1550 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1551
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1552 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1553 bool ok = StringToDouble(r, "6.80309348037215000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1554 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1555 EXPECT_NEAR(6.80309348037215000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1556 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1557
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1558 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1559 bool ok = StringToDouble(r, "4.03658264005365000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1560 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1561 EXPECT_NEAR(4.03658264005365000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1562 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1563
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1564 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1565 bool ok = StringToDouble(r, "8.57714214650747000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1566 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1567 EXPECT_NEAR(8.57714214650747000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1568 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1569
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1570 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1571 bool ok = StringToDouble(r, "-0.25657256359494300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1572 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1573 EXPECT_NEAR(-0.25657256359494300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1574 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1575
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1576 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1577 bool ok = StringToDouble(r, "2.07218601388076000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1578 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1579 EXPECT_NEAR(2.07218601388076000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1580 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1581
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1582 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1583 bool ok = StringToDouble(r, "-0.70300607815345600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1584 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1585 EXPECT_NEAR(-0.70300607815345600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1586 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1587
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1588 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1589 bool ok = StringToDouble(r, "-0.06822028770915030000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1590 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1591 EXPECT_NEAR(-0.06822028770915030000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1592 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1593
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1594 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1595 bool ok = StringToDouble(r, "-0.52253514473857300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1596 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1597 EXPECT_NEAR(-0.52253514473857300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1598 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1599
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1600 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1601 bool ok = StringToDouble(r, "-2.89211508282910000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1602 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1603 EXPECT_NEAR(-2.89211508282910000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1604 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1605
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1606 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1607 bool ok = StringToDouble(r, "-1.47331243043688000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1608 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1609 EXPECT_NEAR(-1.47331243043688000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1610 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1611
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1612 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1613 bool ok = StringToDouble(r, "-3.77190031720697000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1614 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1615 EXPECT_NEAR(-3.77190031720697000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1616 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1617
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1618 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1619 bool ok = StringToDouble(r, "-0.80704979593058400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1620 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1621 EXPECT_NEAR(-0.80704979593058400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1622 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1623
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1624 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1625 bool ok = StringToDouble(r, "1.58398766715845000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1626 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1627 EXPECT_NEAR(1.58398766715845000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1628 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1629
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1630 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1631 bool ok = StringToDouble(r, "2.59532008540482000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1632 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1633 EXPECT_NEAR(2.59532008540482000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1634 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1635
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1636 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1637 bool ok = StringToDouble(r, "-2.92824570343456000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1638 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1639 EXPECT_NEAR(-2.92824570343456000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1640 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1641
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1642 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1643 bool ok = StringToDouble(r, "-0.15232705272560400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1644 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1645 EXPECT_NEAR(-0.15232705272560400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1646 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1647
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1648 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1649 bool ok = StringToDouble(r, "0.13670276871382500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1650 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1651 EXPECT_NEAR(0.13670276871382500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1652 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1653
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1654 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1655 bool ok = StringToDouble(r, "2.20063314286385000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1656 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1657 EXPECT_NEAR(2.20063314286385000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1658 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1659
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1660 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1661 bool ok = StringToDouble(r, "2.20390958339690000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1662 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1663 EXPECT_NEAR(2.20390958339690000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1664 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1665
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1666 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1667 bool ok = StringToDouble(r, "-1.01999231401200000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1668 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1669 EXPECT_NEAR(-1.01999231401200000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1670 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1671
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1672 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1673 bool ok = StringToDouble(r, "-4.33696129476675000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1674 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1675 EXPECT_NEAR(-4.33696129476675000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1676 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1677
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1678 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1679 bool ok = StringToDouble(r, "-3.97472839619216000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1680 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1681 EXPECT_NEAR(-3.97472839619216000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1682 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1683
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1684 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1685 bool ok = StringToDouble(r, "-3.25935508044004000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1686 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1687 EXPECT_NEAR(-3.25935508044004000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1688 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1689
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1690 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1691 bool ok = StringToDouble(r, "3.98737992668548000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1692 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1693 EXPECT_NEAR(3.98737992668548000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1694 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1695
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1696 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1697 bool ok = StringToDouble(r, "3.12647380973595000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1698 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1699 EXPECT_NEAR(3.12647380973595000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1700 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1701
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1702 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1703 bool ok = StringToDouble(r, "2.04573005673487000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1704 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1705 EXPECT_NEAR(2.04573005673487000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1706 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1707
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1708 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1709 bool ok = StringToDouble(r, "-3.40131707240240000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1710 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1711 EXPECT_NEAR(-3.40131707240240000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1712 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1713
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1714 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1715 bool ok = StringToDouble(r, "-5.65350895248975000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1716 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1717 EXPECT_NEAR(-5.65350895248975000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1718 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1719
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1720 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1721 bool ok = StringToDouble(r, "1.94344081509933000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1722 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1723 EXPECT_NEAR(1.94344081509933000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1724 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1725
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1726 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1727 bool ok = StringToDouble(r, "4.72697189247371000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1728 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1729 EXPECT_NEAR(4.72697189247371000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1730 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1731
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1732 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1733 bool ok = StringToDouble(r, "-6.67990308483490000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1734 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1735 EXPECT_NEAR(-6.67990308483490000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1736 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1737
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1738 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1739 bool ok = StringToDouble(r, "1.32343310660542000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1740 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1741 EXPECT_NEAR(1.32343310660542000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1742 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1743
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1744 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1745 bool ok = StringToDouble(r, "-2.78517123090950000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1746 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1747 EXPECT_NEAR(-2.78517123090950000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1748 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1749
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1750 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1751 bool ok = StringToDouble(r, "5.25849816293583000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1752 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1753 EXPECT_NEAR(5.25849816293583000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1754 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1755
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1756 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1757 bool ok = StringToDouble(r, "4.75396267700095000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1758 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1759 EXPECT_NEAR(4.75396267700095000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1760 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1761
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1762 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1763 bool ok = StringToDouble(r, "-2.07647901824168000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1764 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1765 EXPECT_NEAR(-2.07647901824168000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1766 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1767
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1768 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1769 bool ok = StringToDouble(r, "-3.38047538070258000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1770 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1771 EXPECT_NEAR(-3.38047538070258000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1772 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1773
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1774 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1775 bool ok = StringToDouble(r, "0.20758597742145100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1776 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1777 EXPECT_NEAR(0.20758597742145100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1778 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1779
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1780 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1781 bool ok = StringToDouble(r, "-0.85537090667122100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1782 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1783 EXPECT_NEAR(-0.85537090667122100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1784 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1785
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1786 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1787 bool ok = StringToDouble(r, "0.76805423797310000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1788 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1789 EXPECT_NEAR(0.76805423797310000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1790 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1791
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1792 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1793 bool ok = StringToDouble(r, "4.40449492713592000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1794 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1795 EXPECT_NEAR(4.40449492713592000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1796 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1797
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1798 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1799 bool ok = StringToDouble(r, "-3.62167096457336000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1800 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1801 EXPECT_NEAR(-3.62167096457336000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1802 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1803
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1804 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1805 bool ok = StringToDouble(r, "3.74002997550002000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1806 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1807 EXPECT_NEAR(3.74002997550002000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1808 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1809
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1810 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1811 bool ok = StringToDouble(r, "0.42443064164790400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1812 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1813 EXPECT_NEAR(0.42443064164790400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1814 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1815
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1816 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1817 bool ok = StringToDouble(r, "-0.27951604455776900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1818 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1819 EXPECT_NEAR(-0.27951604455776900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1820 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1821
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1822 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1823 bool ok = StringToDouble(r, "-0.51579267322296100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1824 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1825 EXPECT_NEAR(-0.51579267322296100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1826 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1827
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1828 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1829 bool ok = StringToDouble(r, "-2.36457251883339000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1830 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1831 EXPECT_NEAR(-2.36457251883339000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1832 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1833
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1834 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1835 bool ok = StringToDouble(r, "-0.24583724281163800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1836 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1837 EXPECT_NEAR(-0.24583724281163800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1838 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1839
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1840 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1841 bool ok = StringToDouble(r, "0.89377268220461400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1842 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1843 EXPECT_NEAR(0.89377268220461400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1844 }
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1845 }
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1846
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1847 TEST(GenericToolbox, TestStringToDouble3)
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1848 {
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1849 using OrthancStone::GenericToolbox::StringToDouble;
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1850
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1851 const double TOLERANCE = 0.00000000000001;
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
1852 double r = 0.0;
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1853
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1854 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1855 bool ok = StringToDouble(r, "1.45674815825147000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1856 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1857 EXPECT_NEAR(1.45674815825147000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1858 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1859
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1860 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1861 bool ok = StringToDouble(r, "-3.85885778179785000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1862 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1863 EXPECT_NEAR(-3.85885778179785000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1864 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1865
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1866 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1867 bool ok = StringToDouble(r, "-1.46665640857091000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1868 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1869 EXPECT_NEAR(-1.46665640857091000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1870 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1871
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1872 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1873 bool ok = StringToDouble(r, "-2.20955012166670000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1874 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1875 EXPECT_NEAR(-2.20955012166670000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1876 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1877
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1878 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1879 bool ok = StringToDouble(r, "-3.56901773371710000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1880 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1881 EXPECT_NEAR(-3.56901773371710000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1882 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1883
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1884 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1885 bool ok = StringToDouble(r, "-0.28236715260714000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1886 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1887 EXPECT_NEAR(-0.28236715260714000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1888 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1889
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1890 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1891 bool ok = StringToDouble(r, "-3.68701183150938000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1892 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1893 EXPECT_NEAR(-3.68701183150938000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1894 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1895
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1896 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1897 bool ok = StringToDouble(r, "-2.52491544332882000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1898 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1899 EXPECT_NEAR(-2.52491544332882000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1900 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1901
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1902 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1903 bool ok = StringToDouble(r, "-0.35369978756681100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1904 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1905 EXPECT_NEAR(-0.35369978756681100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1906 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1907
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1908 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1909 bool ok = StringToDouble(r, "1.37511760913818000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1910 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1911 EXPECT_NEAR(1.37511760913818000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1912 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1913
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1914 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1915 bool ok = StringToDouble(r, "-2.97143364160106000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1916 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1917 EXPECT_NEAR(-2.97143364160106000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1918 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1919
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1920 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1921 bool ok = StringToDouble(r, "0.24559477959438200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1922 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1923 EXPECT_NEAR(0.24559477959438200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1924 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1925
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1926 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1927 bool ok = StringToDouble(r, "4.75423032204965000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1928 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1929 EXPECT_NEAR(4.75423032204965000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1930 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1931
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1932 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1933 bool ok = StringToDouble(r, "-0.32370293533555300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1934 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1935 EXPECT_NEAR(-0.32370293533555300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1936 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1937
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1938 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1939 bool ok = StringToDouble(r, "-0.91057697616735300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1940 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1941 EXPECT_NEAR(-0.91057697616735300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1942 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1943
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1944 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1945 bool ok = StringToDouble(r, "5.47061739750017000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1946 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1947 EXPECT_NEAR(5.47061739750017000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1948 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1949
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1950 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1951 bool ok = StringToDouble(r, "4.00584944044255000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1952 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1953 EXPECT_NEAR(4.00584944044255000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1954 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1955
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1956 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1957 bool ok = StringToDouble(r, "4.50109276836214000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1958 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1959 EXPECT_NEAR(4.50109276836214000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1960 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1961
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1962 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1963 bool ok = StringToDouble(r, "-3.55007311077336000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1964 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1965 EXPECT_NEAR(-3.55007311077336000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1966 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1967
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1968 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1969 bool ok = StringToDouble(r, "6.72362848947278000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1970 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1971 EXPECT_NEAR(6.72362848947278000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1972 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1973
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1974 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1975 bool ok = StringToDouble(r, "0.01151577930873910000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1976 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1977 EXPECT_NEAR(0.01151577930873910000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1978 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1979
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1980 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1981 bool ok = StringToDouble(r, "-0.42911860719965600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1982 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1983 EXPECT_NEAR(-0.42911860719965600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1984 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1985
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1986 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1987 bool ok = StringToDouble(r, "0.66111289816664900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1988 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1989 EXPECT_NEAR(0.66111289816664900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1990 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1991
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1992 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1993 bool ok = StringToDouble(r, "-2.86619326895662000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1994 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1995 EXPECT_NEAR(-2.86619326895662000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1996 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1997
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1998 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
1999 bool ok = StringToDouble(r, "0.55732089555551800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2000 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2001 EXPECT_NEAR(0.55732089555551800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2002 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2003
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2004 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2005 bool ok = StringToDouble(r, "1.30341160871063000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2006 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2007 EXPECT_NEAR(1.30341160871063000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2008 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2009
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2010 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2011 bool ok = StringToDouble(r, "-1.56416171751671000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2012 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2013 EXPECT_NEAR(-1.56416171751671000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2014 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2015
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2016 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2017 bool ok = StringToDouble(r, "-0.18594183907073900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2018 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2019 EXPECT_NEAR(-0.18594183907073900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2020 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2021
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2022 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2023 bool ok = StringToDouble(r, "-1.76842629255481000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2024 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2025 EXPECT_NEAR(-1.76842629255481000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2026 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2027
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2028 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2029 bool ok = StringToDouble(r, "-0.51401910241563500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2030 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2031 EXPECT_NEAR(-0.51401910241563500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2032 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2033
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2034 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2035 bool ok = StringToDouble(r, "0.22475819701855600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2036 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2037 EXPECT_NEAR(0.22475819701855600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2038 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2039
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2040 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2041 bool ok = StringToDouble(r, "4.52647532265208000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2042 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2043 EXPECT_NEAR(4.52647532265208000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2044 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2045
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2046 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2047 bool ok = StringToDouble(r, "0.36302691626541400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2048 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2049 EXPECT_NEAR(0.36302691626541400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2050 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2051
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2052 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2053 bool ok = StringToDouble(r, "3.97344494357431000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2054 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2055 EXPECT_NEAR(3.97344494357431000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2056 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2057
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2058 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2059 bool ok = StringToDouble(r, "1.55983273528683000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2060 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2061 EXPECT_NEAR(1.55983273528683000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2062 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2063
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2064 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2065 bool ok = StringToDouble(r, "-1.11831213859734000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2066 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2067 EXPECT_NEAR(-1.11831213859734000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2068 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2069
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2070 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2071 bool ok = StringToDouble(r, "-1.65912510665320000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2072 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2073 EXPECT_NEAR(-1.65912510665320000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2074 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2075
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2076 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2077 bool ok = StringToDouble(r, "-0.49382686162217300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2078 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2079 EXPECT_NEAR(-0.49382686162217300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2080 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2081
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2082 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2083 bool ok = StringToDouble(r, "-2.82681319206813000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2084 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2085 EXPECT_NEAR(-2.82681319206813000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2086 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2087
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2088 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2089 bool ok = StringToDouble(r, "0.63990018376158400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2090 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2091 EXPECT_NEAR(0.63990018376158400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2092 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2093
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2094 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2095 bool ok = StringToDouble(r, "-1.46190583889476000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2096 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2097 EXPECT_NEAR(-1.46190583889476000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2098 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2099
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2100 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2101 bool ok = StringToDouble(r, "-5.33778970852365000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2102 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2103 EXPECT_NEAR(-5.33778970852365000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2104 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2105
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2106 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2107 bool ok = StringToDouble(r, "-3.67479071577411000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2108 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2109 EXPECT_NEAR(-3.67479071577411000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2110 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2111
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2112 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2113 bool ok = StringToDouble(r, "-0.92524843393689500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2114 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2115 EXPECT_NEAR(-0.92524843393689500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2116 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2117
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2118 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2119 bool ok = StringToDouble(r, "-5.25880026429762000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2120 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2121 EXPECT_NEAR(-5.25880026429762000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2122 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2123
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2124 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2125 bool ok = StringToDouble(r, "0.74489327613996700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2126 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2127 EXPECT_NEAR(0.74489327613996700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2128 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2129
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2130 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2131 bool ok = StringToDouble(r, "-0.81221138965657700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2132 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2133 EXPECT_NEAR(-0.81221138965657700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2134 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2135
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2136 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2137 bool ok = StringToDouble(r, "2.63922583575742000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2138 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2139 EXPECT_NEAR(2.63922583575742000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2140 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2141
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2142 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2143 bool ok = StringToDouble(r, "-1.46277795175279000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2144 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2145 EXPECT_NEAR(-1.46277795175279000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2146 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2147
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2148 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2149 bool ok = StringToDouble(r, "1.92701639727950000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2150 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2151 EXPECT_NEAR(1.92701639727950000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2152 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2153
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2154 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2155 bool ok = StringToDouble(r, "-1.00608886511047000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2156 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2157 EXPECT_NEAR(-1.00608886511047000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2158 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2159
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2160 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2161 bool ok = StringToDouble(r, "2.59692755566202000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2162 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2163 EXPECT_NEAR(2.59692755566202000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2164 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2165
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2166 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2167 bool ok = StringToDouble(r, "-4.43660191582482000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2168 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2169 EXPECT_NEAR(-4.43660191582482000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2170 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2171
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2172 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2173 bool ok = StringToDouble(r, "2.81340386111566000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2174 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2175 EXPECT_NEAR(2.81340386111566000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2176 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2177
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2178 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2179 bool ok = StringToDouble(r, "4.41381029424169000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2180 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2181 EXPECT_NEAR(4.41381029424169000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2182 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2183
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2184 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2185 bool ok = StringToDouble(r, "-1.19067619994638000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2186 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2187 EXPECT_NEAR(-1.19067619994638000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2188 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2189
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2190 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2191 bool ok = StringToDouble(r, "0.41344288416300500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2192 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2193 EXPECT_NEAR(0.41344288416300500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2194 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2195
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2196 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2197 bool ok = StringToDouble(r, "1.19449050806631000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2198 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2199 EXPECT_NEAR(1.19449050806631000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2200 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2201
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2202 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2203 bool ok = StringToDouble(r, "1.94346623486537000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2204 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2205 EXPECT_NEAR(1.94346623486537000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2206 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2207
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2208 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2209 bool ok = StringToDouble(r, "-0.15222182306952000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2210 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2211 EXPECT_NEAR(-0.15222182306952000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2212 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2213
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2214 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2215 bool ok = StringToDouble(r, "1.16597270635016000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2216 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2217 EXPECT_NEAR(1.16597270635016000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2218 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2219
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2220 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2221 bool ok = StringToDouble(r, "0.70800933434033500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2222 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2223 EXPECT_NEAR(0.70800933434033500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2224 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2225
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2226 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2227 bool ok = StringToDouble(r, "1.01520859362049000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2228 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2229 EXPECT_NEAR(1.01520859362049000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2230 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2231
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2232 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2233 bool ok = StringToDouble(r, "-0.99808924291921000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2234 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2235 EXPECT_NEAR(-0.99808924291921000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2236 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2237
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2238 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2239 bool ok = StringToDouble(r, "-2.46413571523617000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2240 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2241 EXPECT_NEAR(-2.46413571523617000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2242 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2243
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2244 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2245 bool ok = StringToDouble(r, "0.23372155013436100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2246 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2247 EXPECT_NEAR(0.23372155013436100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2248 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2249
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2250 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2251 bool ok = StringToDouble(r, "0.22220872747082200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2252 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2253 EXPECT_NEAR(0.22220872747082200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2254 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2255
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2256 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2257 bool ok = StringToDouble(r, "4.45231083327185000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2258 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2259 EXPECT_NEAR(4.45231083327185000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2260 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2261
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2262 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2263 bool ok = StringToDouble(r, "0.18629931302726700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2264 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2265 EXPECT_NEAR(0.18629931302726700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2266 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2267
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2268 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2269 bool ok = StringToDouble(r, "-1.25902351261081000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2270 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2271 EXPECT_NEAR(-1.25902351261081000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2272 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2273
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2274 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2275 bool ok = StringToDouble(r, "-4.74979626491734000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2276 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2277 EXPECT_NEAR(-4.74979626491734000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2278 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2279
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2280 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2281 bool ok = StringToDouble(r, "0.96938763187002300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2282 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2283 EXPECT_NEAR(0.96938763187002300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2284 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2285
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2286 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2287 bool ok = StringToDouble(r, "4.01957662295404000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2288 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2289 EXPECT_NEAR(4.01957662295404000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2290 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2291
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2292 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2293 bool ok = StringToDouble(r, "-4.29052978268713000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2294 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2295 EXPECT_NEAR(-4.29052978268713000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2296 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2297
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2298 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2299 bool ok = StringToDouble(r, "1.72223107008226000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2300 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2301 EXPECT_NEAR(1.72223107008226000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2302 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2303
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2304 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2305 bool ok = StringToDouble(r, "-1.02075269473024000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2306 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2307 EXPECT_NEAR(-1.02075269473024000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2308 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2309
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2310 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2311 bool ok = StringToDouble(r, "1.41254866425811000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2312 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2313 EXPECT_NEAR(1.41254866425811000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2314 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2315
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2316 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2317 bool ok = StringToDouble(r, "-5.79485280000328000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2318 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2319 EXPECT_NEAR(-5.79485280000328000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2320 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2321
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2322 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2323 bool ok = StringToDouble(r, "1.71346724218879000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2324 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2325 EXPECT_NEAR(1.71346724218879000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2326 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2327
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2328 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2329 bool ok = StringToDouble(r, "0.02769972220451300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2330 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2331 EXPECT_NEAR(0.02769972220451300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2332 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2333
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2334 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2335 bool ok = StringToDouble(r, "0.30840233811538300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2336 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2337 EXPECT_NEAR(0.30840233811538300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2338 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2339
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2340 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2341 bool ok = StringToDouble(r, "2.46998368658050000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2342 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2343 EXPECT_NEAR(2.46998368658050000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2344 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2345
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2346 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2347 bool ok = StringToDouble(r, "-1.39027116095637000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2348 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2349 EXPECT_NEAR(-1.39027116095637000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2350 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2351
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2352 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2353 bool ok = StringToDouble(r, "-4.76287623175477000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2354 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2355 EXPECT_NEAR(-4.76287623175477000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2356 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2357
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2358 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2359 bool ok = StringToDouble(r, "-1.32254147772188000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2360 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2361 EXPECT_NEAR(-1.32254147772188000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2362 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2363
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2364 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2365 bool ok = StringToDouble(r, "-0.43476530791568300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2366 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2367 EXPECT_NEAR(-0.43476530791568300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2368 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2369
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2370 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2371 bool ok = StringToDouble(r, "1.15293149279800000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2372 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2373 EXPECT_NEAR(1.15293149279800000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2374 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2375
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2376 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2377 bool ok = StringToDouble(r, "2.52187680632247000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2378 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2379 EXPECT_NEAR(2.52187680632247000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2380 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2381
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2382 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2383 bool ok = StringToDouble(r, "-2.81464816227136000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2384 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2385 EXPECT_NEAR(-2.81464816227136000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2386 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2387
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2388 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2389 bool ok = StringToDouble(r, "1.45410471462063000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2390 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2391 EXPECT_NEAR(1.45410471462063000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2392 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2393
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2394 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2395 bool ok = StringToDouble(r, "2.05770661428355000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2396 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2397 EXPECT_NEAR(2.05770661428355000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2398 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2399
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2400 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2401 bool ok = StringToDouble(r, "1.13365631051443000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2402 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2403 EXPECT_NEAR(1.13365631051443000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2404 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2405
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2406 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2407 bool ok = StringToDouble(r, "1.78752268413674000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2408 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2409 EXPECT_NEAR(1.78752268413674000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2410 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2411
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2412 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2413 bool ok = StringToDouble(r, "-3.07653691039301000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2414 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2415 EXPECT_NEAR(-3.07653691039301000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2416 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2417
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2418 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2419 bool ok = StringToDouble(r, "0.69590678743817200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2420 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2421 EXPECT_NEAR(0.69590678743817200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2422 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2423
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2424 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2425 bool ok = StringToDouble(r, "0.16750017237716000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2426 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2427 EXPECT_NEAR(0.16750017237716000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2428 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2429
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2430 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2431 bool ok = StringToDouble(r, "-0.80454059859949500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2432 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2433 EXPECT_NEAR(-0.80454059859949500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2434 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2435
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2436 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2437 bool ok = StringToDouble(r, "1.01080121519000000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2438 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2439 EXPECT_NEAR(1.01080121519000000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2440 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2441
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2442 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2443 bool ok = StringToDouble(r, "-6.26823154211325000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2444 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2445 EXPECT_NEAR(-6.26823154211325000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2446 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2447
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2448 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2449 bool ok = StringToDouble(r, "-2.27168923945051000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2450 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2451 EXPECT_NEAR(-2.27168923945051000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2452 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2453
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2454 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2455 bool ok = StringToDouble(r, "2.95882006177823000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2456 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2457 EXPECT_NEAR(2.95882006177823000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2458 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2459
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2460 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2461 bool ok = StringToDouble(r, "-1.29782169884960000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2462 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2463 EXPECT_NEAR(-1.29782169884960000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2464 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2465
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2466 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2467 bool ok = StringToDouble(r, "-5.18868107998160000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2468 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2469 EXPECT_NEAR(-5.18868107998160000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2470 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2471
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2472 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2473 bool ok = StringToDouble(r, "4.42221680213317000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2474 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2475 EXPECT_NEAR(4.42221680213317000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2476 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2477
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2478 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2479 bool ok = StringToDouble(r, "-1.97658929351465000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2480 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2481 EXPECT_NEAR(-1.97658929351465000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2482 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2483
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2484 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2485 bool ok = StringToDouble(r, "3.76786358453912000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2486 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2487 EXPECT_NEAR(3.76786358453912000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2488 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2489
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2490 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2491 bool ok = StringToDouble(r, "-2.63996015852897000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2492 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2493 EXPECT_NEAR(-2.63996015852897000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2494 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2495
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2496 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2497 bool ok = StringToDouble(r, "5.53048948235281000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2498 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2499 EXPECT_NEAR(5.53048948235281000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2500 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2501
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2502 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2503 bool ok = StringToDouble(r, "-2.72713707173900000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2504 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2505 EXPECT_NEAR(-2.72713707173900000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2506 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2507
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2508 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2509 bool ok = StringToDouble(r, "-3.67678586641071000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2510 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2511 EXPECT_NEAR(-3.67678586641071000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2512 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2513
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2514 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2515 bool ok = StringToDouble(r, "2.27938145860632000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2516 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2517 EXPECT_NEAR(2.27938145860632000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2518 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2519
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2520 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2521 bool ok = StringToDouble(r, "2.67198854485259000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2522 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2523 EXPECT_NEAR(2.67198854485259000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2524 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2525
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2526 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2527 bool ok = StringToDouble(r, "1.08448300379640000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2528 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2529 EXPECT_NEAR(1.08448300379640000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2530 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2531
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2532 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2533 bool ok = StringToDouble(r, "0.89200760812645600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2534 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2535 EXPECT_NEAR(0.89200760812645600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2536 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2537
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2538 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2539 bool ok = StringToDouble(r, "5.84610740591283000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2540 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2541 EXPECT_NEAR(5.84610740591283000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2542 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2543
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2544 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2545 bool ok = StringToDouble(r, "2.33520422865196000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2546 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2547 EXPECT_NEAR(2.33520422865196000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2548 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2549
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2550 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2551 bool ok = StringToDouble(r, "-0.26977509689943300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2552 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2553 EXPECT_NEAR(-0.26977509689943300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2554 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2555
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2556 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2557 bool ok = StringToDouble(r, "-1.06556998317024000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2558 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2559 EXPECT_NEAR(-1.06556998317024000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2560 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2561
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2562 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2563 bool ok = StringToDouble(r, "0.10187258099846900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2564 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2565 EXPECT_NEAR(0.10187258099846900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2566 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2567
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2568 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2569 bool ok = StringToDouble(r, "2.17925123727943000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2570 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2571 EXPECT_NEAR(2.17925123727943000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2572 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2573
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2574 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2575 bool ok = StringToDouble(r, "3.53744857107300000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2576 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2577 EXPECT_NEAR(3.53744857107300000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2578 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2579
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2580 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2581 bool ok = StringToDouble(r, "4.79170718052687000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2582 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2583 EXPECT_NEAR(4.79170718052687000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2584 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2585
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2586 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2587 bool ok = StringToDouble(r, "-1.70094405912437000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2588 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2589 EXPECT_NEAR(-1.70094405912437000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2590 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2591
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2592 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2593 bool ok = StringToDouble(r, "-1.36090079790873000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2594 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2595 EXPECT_NEAR(-1.36090079790873000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2596 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2597
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2598 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2599 bool ok = StringToDouble(r, "-0.24214402582849600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2600 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2601 EXPECT_NEAR(-0.24214402582849600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2602 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2603
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2604 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2605 bool ok = StringToDouble(r, "0.61857148054390100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2606 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2607 EXPECT_NEAR(0.61857148054390100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2608 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2609
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2610 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2611 bool ok = StringToDouble(r, "-4.49681404951875000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2612 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2613 EXPECT_NEAR(-4.49681404951875000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2614 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2615
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2616 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2617 bool ok = StringToDouble(r, "-1.62901170744691000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2618 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2619 EXPECT_NEAR(-1.62901170744691000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2620 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2621
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2622 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2623 bool ok = StringToDouble(r, "-4.31812686057237000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2624 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2625 EXPECT_NEAR(-4.31812686057237000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2626 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2627
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2628 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2629 bool ok = StringToDouble(r, "4.29232513324991000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2630 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2631 EXPECT_NEAR(4.29232513324991000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2632 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2633
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2634 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2635 bool ok = StringToDouble(r, "-4.30415968616239000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2636 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2637 EXPECT_NEAR(-4.30415968616239000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2638 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2639
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2640 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2641 bool ok = StringToDouble(r, "0.23085063327904200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2642 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2643 EXPECT_NEAR(0.23085063327904200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2644 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2645
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2646 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2647 bool ok = StringToDouble(r, "0.55328286749515200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2648 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2649 EXPECT_NEAR(0.55328286749515200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2650 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2651
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2652 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2653 bool ok = StringToDouble(r, "-2.85987085857330000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2654 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2655 EXPECT_NEAR(-2.85987085857330000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2656 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2657
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2658 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2659 bool ok = StringToDouble(r, "1.91580898949892000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2660 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2661 EXPECT_NEAR(1.91580898949892000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2662 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2663
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2664 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2665 bool ok = StringToDouble(r, "0.83451772893723400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2666 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2667 EXPECT_NEAR(0.83451772893723400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2668 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2669
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2670 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2671 bool ok = StringToDouble(r, "8.47663066417390000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2672 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2673 EXPECT_NEAR(8.47663066417390000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2674 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2675
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2676 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2677 bool ok = StringToDouble(r, "3.07750241770625000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2678 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2679 EXPECT_NEAR(3.07750241770625000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2680 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2681
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2682 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2683 bool ok = StringToDouble(r, "-0.79888627452876900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2684 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2685 EXPECT_NEAR(-0.79888627452876900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2686 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2687
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2688 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2689 bool ok = StringToDouble(r, "3.62390154942094000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2690 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2691 EXPECT_NEAR(3.62390154942094000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2692 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2693
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2694 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2695 bool ok = StringToDouble(r, "-1.15344123017231000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2696 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2697 EXPECT_NEAR(-1.15344123017231000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2698 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2699
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2700 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2701 bool ok = StringToDouble(r, "0.29946850732165400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2702 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2703 EXPECT_NEAR(0.29946850732165400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2704 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2705
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2706 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2707 bool ok = StringToDouble(r, "0.43195118421230900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2708 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2709 EXPECT_NEAR(0.43195118421230900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2710 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2711
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2712 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2713 bool ok = StringToDouble(r, "-0.96541584823575200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2714 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2715 EXPECT_NEAR(-0.96541584823575200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2716 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2717
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2718 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2719 bool ok = StringToDouble(r, "5.31046639376194000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2720 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2721 EXPECT_NEAR(5.31046639376194000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2722 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2723
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2724 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2725 bool ok = StringToDouble(r, "5.80868720295308000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2726 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2727 EXPECT_NEAR(5.80868720295308000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2728 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2729
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2730 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2731 bool ok = StringToDouble(r, "3.91875650345864000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2732 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2733 EXPECT_NEAR(3.91875650345864000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2734 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2735
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2736 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2737 bool ok = StringToDouble(r, "0.16383120358956700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2738 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2739 EXPECT_NEAR(0.16383120358956700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2740 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2741
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2742 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2743 bool ok = StringToDouble(r, "-0.70602187714556100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2744 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2745 EXPECT_NEAR(-0.70602187714556100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2746 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2747
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2748 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2749 bool ok = StringToDouble(r, "4.59908461641224000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2750 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2751 EXPECT_NEAR(4.59908461641224000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2752 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2753
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2754 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2755 bool ok = StringToDouble(r, "-1.75777826959967000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2756 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2757 EXPECT_NEAR(-1.75777826959967000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2758 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2759
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2760 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2761 bool ok = StringToDouble(r, "7.51297060665513000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2762 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2763 EXPECT_NEAR(7.51297060665513000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2764 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2765
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2766 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2767 bool ok = StringToDouble(r, "0.26428182282563100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2768 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2769 EXPECT_NEAR(0.26428182282563100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2770 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2771
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2772 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2773 bool ok = StringToDouble(r, "-1.39790664337099000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2774 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2775 EXPECT_NEAR(-1.39790664337099000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2776 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2777
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2778 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2779 bool ok = StringToDouble(r, "-3.52727246472497000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2780 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2781 EXPECT_NEAR(-3.52727246472497000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2782 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2783
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2784 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2785 bool ok = StringToDouble(r, "3.15622706860781000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2786 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2787 EXPECT_NEAR(3.15622706860781000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2788 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2789
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2790 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2791 bool ok = StringToDouble(r, "-4.33838258813926000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2792 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2793 EXPECT_NEAR(-4.33838258813926000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2794 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2795
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2796 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2797 bool ok = StringToDouble(r, "-3.68209356689853000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2798 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2799 EXPECT_NEAR(-3.68209356689853000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2800 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2801
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2802 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2803 bool ok = StringToDouble(r, "2.12950059731897000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2804 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2805 EXPECT_NEAR(2.12950059731897000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2806 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2807
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2808 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2809 bool ok = StringToDouble(r, "1.24366467557925000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2810 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2811 EXPECT_NEAR(1.24366467557925000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2812 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2813
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2814 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2815 bool ok = StringToDouble(r, "-1.49620375847259000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2816 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2817 EXPECT_NEAR(-1.49620375847259000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2818 }
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2819 }
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2820
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2821 TEST(GenericToolbox, TestStringToDouble4)
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2822 {
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2823 using OrthancStone::GenericToolbox::StringToDouble;
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2824
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2825 const double TOLERANCE = 0.00000000000001;
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
2826 double r = 0.0;
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2827
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2828 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2829 bool ok = StringToDouble(r, "-2.04336416841016000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2830 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2831 EXPECT_NEAR(-2.04336416841016000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2832 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2833
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2834 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2835 bool ok = StringToDouble(r, "2.67258592218424000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2836 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2837 EXPECT_NEAR(2.67258592218424000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2838 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2839
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2840 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2841 bool ok = StringToDouble(r, "0.50983053528049600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2842 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2843 EXPECT_NEAR(0.50983053528049600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2844 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2845
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2846 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2847 bool ok = StringToDouble(r, "0.91671084717300400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2848 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2849 EXPECT_NEAR(0.91671084717300400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2850 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2851
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2852 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2853 bool ok = StringToDouble(r, "-8.44023177630015000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2854 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2855 EXPECT_NEAR(-8.44023177630015000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2856 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2857
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2858 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2859 bool ok = StringToDouble(r, "5.74048232685721000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2860 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2861 EXPECT_NEAR(5.74048232685721000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2862 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2863
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2864 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2865 bool ok = StringToDouble(r, "-2.26893036021697000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2866 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2867 EXPECT_NEAR(-2.26893036021697000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2868 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2869
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2870 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2871 bool ok = StringToDouble(r, "-1.81851986861265000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2872 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2873 EXPECT_NEAR(-1.81851986861265000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2874 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2875
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2876 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2877 bool ok = StringToDouble(r, "1.15033199581975000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2878 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2879 EXPECT_NEAR(1.15033199581975000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2880 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2881
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2882 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2883 bool ok = StringToDouble(r, "1.78498201393837000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2884 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2885 EXPECT_NEAR(1.78498201393837000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2886 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2887
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2888 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2889 bool ok = StringToDouble(r, "-0.05287486584367510000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2890 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2891 EXPECT_NEAR(-0.05287486584367510000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2892 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2893
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2894 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2895 bool ok = StringToDouble(r, "-4.61135813076181000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2896 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2897 EXPECT_NEAR(-4.61135813076181000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2898 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2899
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2900 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2901 bool ok = StringToDouble(r, "2.28026567889772000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2902 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2903 EXPECT_NEAR(2.28026567889772000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2904 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2905
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2906 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2907 bool ok = StringToDouble(r, "4.42191037602383000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2908 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2909 EXPECT_NEAR(4.42191037602383000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2910 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2911
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2912 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2913 bool ok = StringToDouble(r, "4.91926628714024000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2914 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2915 EXPECT_NEAR(4.91926628714024000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2916 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2917
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2918 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2919 bool ok = StringToDouble(r, "2.13695172353534000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2920 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2921 EXPECT_NEAR(2.13695172353534000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2922 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2923
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2924 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2925 bool ok = StringToDouble(r, "-1.19234124167404000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2926 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2927 EXPECT_NEAR(-1.19234124167404000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2928 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2929
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2930 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2931 bool ok = StringToDouble(r, "1.54749310279860000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2932 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2933 EXPECT_NEAR(1.54749310279860000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2934 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2935
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2936 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2937 bool ok = StringToDouble(r, "0.79683457995789900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2938 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2939 EXPECT_NEAR(0.79683457995789900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2940 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2941
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2942 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2943 bool ok = StringToDouble(r, "-0.35976469553121900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2944 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2945 EXPECT_NEAR(-0.35976469553121900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2946 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2947
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2948 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2949 bool ok = StringToDouble(r, "0.77036485893720200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2950 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2951 EXPECT_NEAR(0.77036485893720200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2952 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2953
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2954 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2955 bool ok = StringToDouble(r, "3.05245602278075000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2956 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2957 EXPECT_NEAR(3.05245602278075000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2958 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2959
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2960 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2961 bool ok = StringToDouble(r, "5.82693752156961000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2962 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2963 EXPECT_NEAR(5.82693752156961000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2964 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2965
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2966 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2967 bool ok = StringToDouble(r, "2.59176692084240000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2968 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2969 EXPECT_NEAR(2.59176692084240000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2970 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2971
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2972 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2973 bool ok = StringToDouble(r, "4.59390017044970000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2974 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2975 EXPECT_NEAR(4.59390017044970000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2976 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2977
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2978 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2979 bool ok = StringToDouble(r, "4.33597209441560000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2980 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2981 EXPECT_NEAR(4.33597209441560000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2982 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2983
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2984 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2985 bool ok = StringToDouble(r, "-1.73223852215944000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2986 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2987 EXPECT_NEAR(-1.73223852215944000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2988 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2989
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2990 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2991 bool ok = StringToDouble(r, "0.36562951036666300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2992 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2993 EXPECT_NEAR(0.36562951036666300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2994 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2995
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2996 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2997 bool ok = StringToDouble(r, "1.16083819415565000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2998 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
2999 EXPECT_NEAR(1.16083819415565000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3000 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3001
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3002 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3003 bool ok = StringToDouble(r, "-5.19457461912900000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3004 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3005 EXPECT_NEAR(-5.19457461912900000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3006 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3007
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3008 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3009 bool ok = StringToDouble(r, "2.48993781857833000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3010 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3011 EXPECT_NEAR(2.48993781857833000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3012 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3013
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3014 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3015 bool ok = StringToDouble(r, "2.91089514047878000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3016 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3017 EXPECT_NEAR(2.91089514047878000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3018 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3019
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3020 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3021 bool ok = StringToDouble(r, "-2.67713158365996000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3022 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3023 EXPECT_NEAR(-2.67713158365996000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3024 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3025
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3026 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3027 bool ok = StringToDouble(r, "-0.14929866451844800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3028 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3029 EXPECT_NEAR(-0.14929866451844800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3030 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3031
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3032 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3033 bool ok = StringToDouble(r, "-3.76110653286820000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3034 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3035 EXPECT_NEAR(-3.76110653286820000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3036 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3037
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3038 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3039 bool ok = StringToDouble(r, "-0.05937778946509720000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3040 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3041 EXPECT_NEAR(-0.05937778946509720000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3042 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3043
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3044 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3045 bool ok = StringToDouble(r, "1.67737188304973000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3046 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3047 EXPECT_NEAR(1.67737188304973000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3048 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3049
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3050 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3051 bool ok = StringToDouble(r, "-3.58425440578219000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3052 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3053 EXPECT_NEAR(-3.58425440578219000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3054 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3055
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3056 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3057 bool ok = StringToDouble(r, "1.30491550374261000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3058 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3059 EXPECT_NEAR(1.30491550374261000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3060 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3061
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3062 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3063 bool ok = StringToDouble(r, "2.48379945880357000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3064 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3065 EXPECT_NEAR(2.48379945880357000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3066 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3067
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3068 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3069 bool ok = StringToDouble(r, "-0.62987027701035800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3070 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3071 EXPECT_NEAR(-0.62987027701035800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3072 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3073
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3074 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3075 bool ok = StringToDouble(r, "-2.97181285150671000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3076 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3077 EXPECT_NEAR(-2.97181285150671000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3078 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3079
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3080 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3081 bool ok = StringToDouble(r, "-0.24881707556359700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3082 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3083 EXPECT_NEAR(-0.24881707556359700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3084 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3085
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3086 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3087 bool ok = StringToDouble(r, "-2.83925282156180000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3088 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3089 EXPECT_NEAR(-2.83925282156180000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3090 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3091
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3092 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3093 bool ok = StringToDouble(r, "-2.07567311295324000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3094 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3095 EXPECT_NEAR(-2.07567311295324000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3096 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3097
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3098 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3099 bool ok = StringToDouble(r, "-2.78919598870022000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3100 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3101 EXPECT_NEAR(-2.78919598870022000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3102 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3103
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3104 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3105 bool ok = StringToDouble(r, "4.51240908161798000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3106 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3107 EXPECT_NEAR(4.51240908161798000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3108 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3109
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3110 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3111 bool ok = StringToDouble(r, "2.51275535534832000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3112 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3113 EXPECT_NEAR(2.51275535534832000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3114 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3115
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3116 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3117 bool ok = StringToDouble(r, "1.58920518726789000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3118 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3119 EXPECT_NEAR(1.58920518726789000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3120 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3121
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3122 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3123 bool ok = StringToDouble(r, "3.81944139206950000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3124 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3125 EXPECT_NEAR(3.81944139206950000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3126 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3127
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3128 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3129 bool ok = StringToDouble(r, "-1.20584689863215000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3130 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3131 EXPECT_NEAR(-1.20584689863215000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3132 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3133
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3134 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3135 bool ok = StringToDouble(r, "0.52387820278697400000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3136 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3137 EXPECT_NEAR(0.52387820278697400000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3138 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3139
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3140 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3141 bool ok = StringToDouble(r, "1.41030960929320000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3142 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3143 EXPECT_NEAR(1.41030960929320000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3144 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3145
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3146 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3147 bool ok = StringToDouble(r, "-1.92103214885374000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3148 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3149 EXPECT_NEAR(-1.92103214885374000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3150 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3151
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3152 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3153 bool ok = StringToDouble(r, "-5.24231540245246000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3154 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3155 EXPECT_NEAR(-5.24231540245246000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3156 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3157
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3158 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3159 bool ok = StringToDouble(r, "-0.16908726665941100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3160 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3161 EXPECT_NEAR(-0.16908726665941100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3162 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3163
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3164 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3165 bool ok = StringToDouble(r, "-4.44589887686242000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3166 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3167 EXPECT_NEAR(-4.44589887686242000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3168 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3169
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3170 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3171 bool ok = StringToDouble(r, "-2.49069006371512000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3172 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3173 EXPECT_NEAR(-2.49069006371512000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3174 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3175
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3176 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3177 bool ok = StringToDouble(r, "-0.80650544937931100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3178 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3179 EXPECT_NEAR(-0.80650544937931100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3180 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3181
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3182 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3183 bool ok = StringToDouble(r, "-1.97976397104165000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3184 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3185 EXPECT_NEAR(-1.97976397104165000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3186 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3187
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3188 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3189 bool ok = StringToDouble(r, "4.98766812819005000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3190 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3191 EXPECT_NEAR(4.98766812819005000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3192 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3193
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3194 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3195 bool ok = StringToDouble(r, "-0.72989593663204100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3196 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3197 EXPECT_NEAR(-0.72989593663204100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3198 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3199
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3200 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3201 bool ok = StringToDouble(r, "-1.61947487048298000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3202 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3203 EXPECT_NEAR(-1.61947487048298000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3204 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3205
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3206 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3207 bool ok = StringToDouble(r, "0.14305085135282200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3208 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3209 EXPECT_NEAR(0.14305085135282200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3210 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3211
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3212 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3213 bool ok = StringToDouble(r, "-0.19625994631193500000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3214 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3215 EXPECT_NEAR(-0.19625994631193500000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3216 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3217
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3218 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3219 bool ok = StringToDouble(r, "3.37918205114016000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3220 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3221 EXPECT_NEAR(3.37918205114016000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3222 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3223
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3224 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3225 bool ok = StringToDouble(r, "6.59599108171267000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3226 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3227 EXPECT_NEAR(6.59599108171267000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3228 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3229
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3230 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3231 bool ok = StringToDouble(r, "2.96455017519345000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3232 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3233 EXPECT_NEAR(2.96455017519345000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3234 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3235
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3236 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3237 bool ok = StringToDouble(r, "2.54659210340770000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3238 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3239 EXPECT_NEAR(2.54659210340770000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3240 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3241
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3242 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3243 bool ok = StringToDouble(r, "-3.34333955584988000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3244 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3245 EXPECT_NEAR(-3.34333955584988000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3246 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3247
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3248 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3249 bool ok = StringToDouble(r, "-2.97945807230247000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3250 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3251 EXPECT_NEAR(-2.97945807230247000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3252 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3253
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3254 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3255 bool ok = StringToDouble(r, "-1.16309656911088000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3256 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3257 EXPECT_NEAR(-1.16309656911088000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3258 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3259
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3260 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3261 bool ok = StringToDouble(r, "-3.25046325751587000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3262 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3263 EXPECT_NEAR(-3.25046325751587000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3264 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3265
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3266 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3267 bool ok = StringToDouble(r, "-1.95513333613538000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3268 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3269 EXPECT_NEAR(-1.95513333613538000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3270 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3271
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3272 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3273 bool ok = StringToDouble(r, "0.44180657712571200000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3274 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3275 EXPECT_NEAR(0.44180657712571200000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3276 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3277
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3278 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3279 bool ok = StringToDouble(r, "-5.62068238736436000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3280 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3281 EXPECT_NEAR(-5.62068238736436000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3282 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3283
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3284 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3285 bool ok = StringToDouble(r, "-1.06550714914445000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3286 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3287 EXPECT_NEAR(-1.06550714914445000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3288 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3289
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3290 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3291 bool ok = StringToDouble(r, "-1.50821128944561000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3292 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3293 EXPECT_NEAR(-1.50821128944561000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3294 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3295
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3296 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3297 bool ok = StringToDouble(r, "2.15508838007900000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3298 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3299 EXPECT_NEAR(2.15508838007900000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3300 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3301
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3302 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3303 bool ok = StringToDouble(r, "-1.95233817795899000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3304 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3305 EXPECT_NEAR(-1.95233817795899000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3306 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3307
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3308 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3309 bool ok = StringToDouble(r, "-2.51496658163574000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3310 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3311 EXPECT_NEAR(-2.51496658163574000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3312 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3313
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3314 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3315 bool ok = StringToDouble(r, "-0.78333801715048000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3316 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3317 EXPECT_NEAR(-0.78333801715048000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3318 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3319
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3320 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3321 bool ok = StringToDouble(r, "-3.21314186040171000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3322 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3323 EXPECT_NEAR(-3.21314186040171000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3324 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3325
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3326 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3327 bool ok = StringToDouble(r, "0.66527690284710800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3328 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3329 EXPECT_NEAR(0.66527690284710800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3330 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3331
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3332 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3333 bool ok = StringToDouble(r, "-3.15441313415350000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3334 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3335 EXPECT_NEAR(-3.15441313415350000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3336 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3337
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3338 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3339 bool ok = StringToDouble(r, "-2.23491685110319000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3340 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3341 EXPECT_NEAR(-2.23491685110319000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3342 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3343
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3344 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3345 bool ok = StringToDouble(r, "-1.72724695951577000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3346 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3347 EXPECT_NEAR(-1.72724695951577000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3348 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3349
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3350 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3351 bool ok = StringToDouble(r, "-0.24050455306641300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3352 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3353 EXPECT_NEAR(-0.24050455306641300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3354 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3355
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3356 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3357 bool ok = StringToDouble(r, "-1.21656863480457000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3358 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3359 EXPECT_NEAR(-1.21656863480457000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3360 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3361
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3362 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3363 bool ok = StringToDouble(r, "-2.26488830552906000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3364 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3365 EXPECT_NEAR(-2.26488830552906000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3366 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3367
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3368 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3369 bool ok = StringToDouble(r, "3.75588617365038000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3370 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3371 EXPECT_NEAR(3.75588617365038000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3372 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3373
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3374 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3375 bool ok = StringToDouble(r, "-0.03323480544193850000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3376 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3377 EXPECT_NEAR(-0.03323480544193850000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3378 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3379
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3380 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3381 bool ok = StringToDouble(r, "-0.09120742547457650000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3382 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3383 EXPECT_NEAR(-0.09120742547457650000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3384 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3385
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3386 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3387 bool ok = StringToDouble(r, "-7.88263056036503000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3388 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3389 EXPECT_NEAR(-7.88263056036503000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3390 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3391
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3392 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3393 bool ok = StringToDouble(r, "-1.43816026309627000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3394 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3395 EXPECT_NEAR(-1.43816026309627000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3396 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3397
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3398 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3399 bool ok = StringToDouble(r, "-7.03193105607121000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3400 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3401 EXPECT_NEAR(-7.03193105607121000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3402 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3403
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3404 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3405 bool ok = StringToDouble(r, "-1.60611554369909000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3406 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3407 EXPECT_NEAR(-1.60611554369909000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3408 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3409
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3410 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3411 bool ok = StringToDouble(r, "-5.51585989717609000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3412 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3413 EXPECT_NEAR(-5.51585989717609000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3414 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3415
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3416 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3417 bool ok = StringToDouble(r, "1.07820571638609000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3418 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3419 EXPECT_NEAR(1.07820571638609000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3420 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3421
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3422 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3423 bool ok = StringToDouble(r, "-2.06101375865811000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3424 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3425 EXPECT_NEAR(-2.06101375865811000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3426 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3427
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3428 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3429 bool ok = StringToDouble(r, "-2.20736962161768000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3430 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3431 EXPECT_NEAR(-2.20736962161768000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3432 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3433
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3434 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3435 bool ok = StringToDouble(r, "1.90243061828996000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3436 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3437 EXPECT_NEAR(1.90243061828996000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3438 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3439
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3440 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3441 bool ok = StringToDouble(r, "-2.85299495975262000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3442 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3443 EXPECT_NEAR(-2.85299495975262000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3444 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3445
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3446 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3447 bool ok = StringToDouble(r, "2.12934888152265000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3448 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3449 EXPECT_NEAR(2.12934888152265000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3450 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3451
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3452 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3453 bool ok = StringToDouble(r, "-2.67072919212958000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3454 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3455 EXPECT_NEAR(-2.67072919212958000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3456 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3457
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3458 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3459 bool ok = StringToDouble(r, "-0.83114509924264900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3460 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3461 EXPECT_NEAR(-0.83114509924264900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3462 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3463
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3464 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3465 bool ok = StringToDouble(r, "5.30250616100438000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3466 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3467 EXPECT_NEAR(5.30250616100438000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3468 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3469
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3470 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3471 bool ok = StringToDouble(r, "1.12093048302870000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3472 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3473 EXPECT_NEAR(1.12093048302870000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3474 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3475
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3476 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3477 bool ok = StringToDouble(r, "1.05552960660102000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3478 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3479 EXPECT_NEAR(1.05552960660102000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3480 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3481
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3482 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3483 bool ok = StringToDouble(r, "1.49292325032676000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3484 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3485 EXPECT_NEAR(1.49292325032676000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3486 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3487
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3488 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3489 bool ok = StringToDouble(r, "-1.17400757029104000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3490 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3491 EXPECT_NEAR(-1.17400757029104000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3492 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3493
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3494 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3495 bool ok = StringToDouble(r, "-2.14267109660887000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3496 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3497 EXPECT_NEAR(-2.14267109660887000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3498 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3499
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3500 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3501 bool ok = StringToDouble(r, "-1.10546669054034000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3502 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3503 EXPECT_NEAR(-1.10546669054034000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3504 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3505
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3506 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3507 bool ok = StringToDouble(r, "-0.21371952871041700000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3508 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3509 EXPECT_NEAR(-0.21371952871041700000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3510 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3511
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3512 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3513 bool ok = StringToDouble(r, "4.78156583044177000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3514 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3515 EXPECT_NEAR(4.78156583044177000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3516 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3517
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3518 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3519 bool ok = StringToDouble(r, "-1.50472792044367000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3520 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3521 EXPECT_NEAR(-1.50472792044367000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3522 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3523
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3524 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3525 bool ok = StringToDouble(r, "-0.12605755507866600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3526 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3527 EXPECT_NEAR(-0.12605755507866600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3528 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3529
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3530 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3531 bool ok = StringToDouble(r, "1.70371185139311000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3532 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3533 EXPECT_NEAR(1.70371185139311000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3534 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3535
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3536 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3537 bool ok = StringToDouble(r, "-3.10053982101354000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3538 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3539 EXPECT_NEAR(-3.10053982101354000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3540 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3541
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3542 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3543 bool ok = StringToDouble(r, "-1.83624586947925000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3544 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3545 EXPECT_NEAR(-1.83624586947925000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3546 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3547
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3548 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3549 bool ok = StringToDouble(r, "-4.05046060224221000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3550 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3551 EXPECT_NEAR(-4.05046060224221000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3552 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3553
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3554 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3555 bool ok = StringToDouble(r, "0.28157147555257100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3556 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3557 EXPECT_NEAR(0.28157147555257100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3558 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3559
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3560 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3561 bool ok = StringToDouble(r, "1.59637285322805000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3562 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3563 EXPECT_NEAR(1.59637285322805000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3564 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3565
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3566 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3567 bool ok = StringToDouble(r, "-0.75470175557419100000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3568 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3569 EXPECT_NEAR(-0.75470175557419100000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3570 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3571
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3572 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3573 bool ok = StringToDouble(r, "-1.70838399472621000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3574 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3575 EXPECT_NEAR(-1.70838399472621000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3576 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3577
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3578 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3579 bool ok = StringToDouble(r, "2.45654131621183000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3580 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3581 EXPECT_NEAR(2.45654131621183000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3582 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3583
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3584 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3585 bool ok = StringToDouble(r, "2.28443945581399000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3586 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3587 EXPECT_NEAR(2.28443945581399000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3588 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3589
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3590 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3591 bool ok = StringToDouble(r, "1.68823597183684000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3592 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3593 EXPECT_NEAR(1.68823597183684000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3594 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3595
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3596 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3597 bool ok = StringToDouble(r, "1.29650435341174000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3598 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3599 EXPECT_NEAR(1.29650435341174000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3600 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3601
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3602 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3603 bool ok = StringToDouble(r, "1.90134290476188000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3604 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3605 EXPECT_NEAR(1.90134290476188000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3606 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3607
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3608 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3609 bool ok = StringToDouble(r, "-1.18487205108194000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3610 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3611 EXPECT_NEAR(-1.18487205108194000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3612 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3613
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3614 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3615 bool ok = StringToDouble(r, "-0.14778330708372000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3616 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3617 EXPECT_NEAR(-0.14778330708372000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3618 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3619
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3620 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3621 bool ok = StringToDouble(r, "-3.98574838531856000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3622 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3623 EXPECT_NEAR(-3.98574838531856000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3624 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3625
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3626 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3627 bool ok = StringToDouble(r, "-2.38116626593387000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3628 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3629 EXPECT_NEAR(-2.38116626593387000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3630 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3631
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3632 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3633 bool ok = StringToDouble(r, "0.18109367323846900000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3634 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3635 EXPECT_NEAR(0.18109367323846900000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3636 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3637
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3638 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3639 bool ok = StringToDouble(r, "-2.54919024558896000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3640 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3641 EXPECT_NEAR(-2.54919024558896000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3642 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3643
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3644 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3645 bool ok = StringToDouble(r, "-3.01819062231017000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3646 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3647 EXPECT_NEAR(-3.01819062231017000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3648 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3649
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3650 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3651 bool ok = StringToDouble(r, "2.86141885135950000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3652 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3653 EXPECT_NEAR(2.86141885135950000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3654 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3655
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3656 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3657 bool ok = StringToDouble(r, "0.31984756442573800000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3658 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3659 EXPECT_NEAR(0.31984756442573800000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3660 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3661
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3662 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3663 bool ok = StringToDouble(r, "-2.35256585949514000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3664 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3665 EXPECT_NEAR(-2.35256585949514000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3666 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3667
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3668 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3669 bool ok = StringToDouble(r, "-6.04254591090669000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3670 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3671 EXPECT_NEAR(-6.04254591090669000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3672 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3673
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3674 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3675 bool ok = StringToDouble(r, "-0.31151799331342300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3676 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3677 EXPECT_NEAR(-0.31151799331342300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3678 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3679
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3680 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3681 bool ok = StringToDouble(r, "-2.77556498660193000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3682 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3683 EXPECT_NEAR(-2.77556498660193000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3684 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3685
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3686 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3687 bool ok = StringToDouble(r, "5.90371566906766000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3688 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3689 EXPECT_NEAR(5.90371566906766000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3690 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3691
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3692 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3693 bool ok = StringToDouble(r, "-1.29825016398122000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3694 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3695 EXPECT_NEAR(-1.29825016398122000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3696 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3697
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3698 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3699 bool ok = StringToDouble(r, "-1.01456323654512000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3700 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3701 EXPECT_NEAR(-1.01456323654512000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3702 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3703
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3704 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3705 bool ok = StringToDouble(r, "-6.19305288625244000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3706 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3707 EXPECT_NEAR(-6.19305288625244000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3708 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3709
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3710 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3711 bool ok = StringToDouble(r, "0.99509367627092600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3712 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3713 EXPECT_NEAR(0.99509367627092600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3714 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3715
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3716 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3717 bool ok = StringToDouble(r, "-0.08519786419394440000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3718 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3719 EXPECT_NEAR(-0.08519786419394440000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3720 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3721
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3722 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3723 bool ok = StringToDouble(r, "2.88317752752055000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3724 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3725 EXPECT_NEAR(2.88317752752055000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3726 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3727
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3728 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3729 bool ok = StringToDouble(r, "1.69592260047492000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3730 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3731 EXPECT_NEAR(1.69592260047492000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3732 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3733
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3734 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3735 bool ok = StringToDouble(r, "-4.66260089028084000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3736 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3737 EXPECT_NEAR(-4.66260089028084000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3738 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3739
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3740 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3741 bool ok = StringToDouble(r, "-1.12882625389413000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3742 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3743 EXPECT_NEAR(-1.12882625389413000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3744 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3745
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3746 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3747 bool ok = StringToDouble(r, "2.79536921500302000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3748 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3749 EXPECT_NEAR(2.79536921500302000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3750 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3751
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3752 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3753 bool ok = StringToDouble(r, "-4.51399167357593000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3754 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3755 EXPECT_NEAR(-4.51399167357593000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3756 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3757
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3758 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3759 bool ok = StringToDouble(r, "-0.75817764527332300000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3760 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3761 EXPECT_NEAR(-0.75817764527332300000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3762 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3763
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3764 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3765 bool ok = StringToDouble(r, "-2.12821371262498000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3766 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3767 EXPECT_NEAR(-2.12821371262498000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3768 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3769
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3770 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3771 bool ok = StringToDouble(r, "-1.08153732327358000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3772 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3773 EXPECT_NEAR(-1.08153732327358000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3774 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3775
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3776 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3777 bool ok = StringToDouble(r, "0.71608571781169600000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3778 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3779 EXPECT_NEAR(0.71608571781169600000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3780 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3781
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3782 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3783 bool ok = StringToDouble(r, "2.42004689052701000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3784 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3785 EXPECT_NEAR(2.42004689052701000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3786 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3787
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3788 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3789 bool ok = StringToDouble(r, "2.84542164846610000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3790 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3791 EXPECT_NEAR(2.84542164846610000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3792 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3793
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3794 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3795 bool ok = StringToDouble(r, "2.97822513569917000000");
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3796 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3797 EXPECT_NEAR(2.97822513569917000000, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3798 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3799 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3800
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3801 TEST(GenericToolbox, TestStringToDoubleHard)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3802 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3803 using OrthancStone::GenericToolbox::StringToDouble;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3804 const double TOLERANCE = 0.00000000000001;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3805
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3806 size_t i = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3807 const size_t COUNT = 125;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3808 //const double FACTOR = 1.000000000171271211;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3809 const double FACTOR = 1.71271211;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3810 for (double b = DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3811 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3812 char txt[1024];
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3813 #if defined(_MSC_VER)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3814 sprintf_s(txt, "%.17f", b);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3815 #else
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3816 snprintf(txt, sizeof(txt) - 1, "%.17f", b);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3817 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3818 double r = 0.0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3819 bool ok = StringToDouble(r, txt);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3820
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3821 #if 0
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3822 if (ok)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3823 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3824 printf("OK for txt = \"%s\" and r = %.17f\n", txt, r);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3825 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3826 else
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3827 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3828 printf("Not ok for txt = \"%s\" and r = %.17f\n", txt, r);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3829 ok = StringToDouble(r, txt);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3830 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3831 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3832
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3833 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3834
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3835 #if 0
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3836 if (fabs(b - r) > TOLERANCE)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3837 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3838 printf("fabs(b (%.17f) - r (%.17f)) ((%.17f)) > TOLERANCE (%.17f)\n", b, r, fabs(b-r), TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3839 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3840 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3841 EXPECT_NEAR(b, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3842 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3843 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3844
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3845 TEST(GenericToolbox, TestStringToDoubleHardNeg)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3846 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3847 using OrthancStone::GenericToolbox::StringToDouble;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3848 const double TOLERANCE = 0.00000000000001;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3849
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3850 size_t i = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3851 const size_t COUNT = 125;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3852 //const double FACTOR = 1.000000000171271211;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3853 const double FACTOR = 1.71271211;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3854 for (double b = -1.0*DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3855 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3856 char txt[1024];
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3857 #if defined(_MSC_VER)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3858 sprintf_s(txt, "%.17f", b);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3859 #else
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3860 snprintf(txt, sizeof(txt) - 1, "%.17f", b);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3861 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3862 double r = 0.0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3863 bool ok = StringToDouble(r, txt);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3864
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3865 #if 0
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3866 if (ok)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3867 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3868 printf("OK for txt = \"%s\" and r = %.17f\n", txt, r);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3869 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3870 else
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3871 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3872 printf("Not ok for txt = \"%s\" and r = %.17f\n", txt, r);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3873 ok = StringToDouble(r, txt);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3874 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3875 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3876
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3877 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3878
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3879 #if 0
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3880 if (fabs(b - r) > TOLERANCE)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3881 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3882 printf("fabs(b (%.17f) - r (%.17f)) ((%.17f)) > TOLERANCE (%.17f)\n", b, r, fabs(b - r), TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3883 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3884 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3885 EXPECT_NEAR(b, r, TOLERANCE);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3886 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3887 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
3888
1403
5630c2fb7b0f cleanup + reactivate UnitTests
Alain Mazy <alain@mazy.be>
parents: 1331
diff changeset
3889 static const size_t NUM_TIMINGS_CONVS = 1; // set to 2000 if you want to measure perfs;
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3890
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3891
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3892 //4444444444444444$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3893
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3894 TEST(GenericToolbox, TestStringToDoubleHardNeg_lexical_cast_vs_StringToDouble)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3895 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3896 using OrthancStone::GenericToolbox::StringToDouble;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3897 const double TOLERANCE = 0.00000000000001;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3898
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3899 double total_us_StringToDouble = 0.0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3900 double total_us_lexical_cast = 0.0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3901 int64_t numConversions = 0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3902
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3903 size_t i = 0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3904 const size_t COUNT = 125;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3905 //const double FACTOR = 1.000000000171271211;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3906 const double FACTOR = 1.71271211;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3907 for (double b = -1.0 * DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3908 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3909 char txt[1024];
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3910 #if defined(_MSC_VER)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3911 sprintf_s(txt, "%.17f", b);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3912 #else
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3913 snprintf(txt, sizeof(txt) - 1, "%.17f", b);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3914 #endif
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3915
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3916
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3917 double r = 0.0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3918
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3919 bool ok = true;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3920
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3921 {
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
3922 boost::posix_time::ptime start = boost::posix_time::microsec_clock::local_time();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3923 for (size_t i = 0; i < NUM_TIMINGS_CONVS; ++i)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3924 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3925 ok = StringToDouble(r, txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3926 }
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
3927 boost::posix_time::ptime end = boost::posix_time::microsec_clock::local_time();
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
3928 total_us_StringToDouble += (end - start).total_microseconds();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3929 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3930
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3931 {
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
3932 boost::posix_time::ptime start = boost::posix_time::microsec_clock::local_time();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3933 for (size_t i = 0; i < NUM_TIMINGS_CONVS; ++i)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3934 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3935 try
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3936 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3937 r = boost::lexical_cast<double>(txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3938 ok = true;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3939 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3940 catch (boost::bad_lexical_cast& )
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3941 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3942 ok = false;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3943 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3944 }
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
3945 boost::posix_time::ptime end = boost::posix_time::microsec_clock::local_time();
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
3946 total_us_lexical_cast += (end - start).total_microseconds();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3947 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3948 numConversions += NUM_TIMINGS_CONVS;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3949
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3950 #if 0
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3951 if (ok)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3952 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3953 printf("OK for txt = \"%s\" and r = %.17f\n", txt, r);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3954 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3955 else
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3956 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3957 printf("Not ok for txt = \"%s\" and r = %.17f\n", txt, r);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3958 ok = StringToDouble(r, txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3959 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3960 #endif
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3961
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3962 EXPECT_TRUE(ok);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3963
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3964 #if 0
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3965 if (fabs(b - r) > TOLERANCE)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3966 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3967 printf("fabs(b (%.17f) - r (%.17f)) ((%.17f)) > TOLERANCE (%.17f)\n", b, r, fabs(b - r), TOLERANCE);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3968 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3969 #endif
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3970 EXPECT_NEAR(b, r, TOLERANCE);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3971 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3972 std::cout << "Total time (us) for " << numConversions
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3973 << " conversions using StringToDouble (with NO scientific notation) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3974 << static_cast<int64_t>(total_us_StringToDouble) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3975
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3976 std::cout << "Time per conversion using StringToDouble (ns) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3977 << (int64_t)( (total_us_StringToDouble * 1000) /((double)numConversions)) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3978
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3979 std::cout << "Total time (us) for " << numConversions
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3980 << " conversions using boost::lexical_cast (with NO scientific notation) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3981 << static_cast<int64_t>(total_us_lexical_cast) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3982
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3983 std::cout << "Time per conversion using boost::lexical_cast (ns) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3984 << (int64_t)( (total_us_lexical_cast * 1000) / ((double)numConversions)) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3985
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3986 std::cout << "StringToDouble is " << (int)((total_us_lexical_cast / total_us_StringToDouble) + 0.5) << " times faster than boost::lexical_cast" << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3987
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3988 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3989 //4444444444444444$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
3990
1166
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3991
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3992 TEST(GenericToolbox, TestStringToDoubleHardScientific)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3993 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3994 using OrthancStone::GenericToolbox::StringToDouble;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3995 const double TOLERANCE = 0.00000000000001;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3996
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3997 size_t i = 0;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3998 const size_t COUNT = 125;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
3999 //const double FACTOR = 1.000000000171271211;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4000 const double FACTOR = 1.71271211;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4001 for (double b = DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4002 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4003
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4004 // the tolerance must be adapted depending on the exponent
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4005 double exponent = (b == 0) ? 0 : 1.0 + std::floor(std::log10(std::fabs(b)));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4006 double actualTolerance = TOLERANCE * pow(10.0, exponent);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4007
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4008 char txt[1024];
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4009 #if defined(_MSC_VER)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4010 sprintf_s(txt, "%.17e", b);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4011 #else
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4012 snprintf(txt, sizeof(txt) - 1, "%.17e", b);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4013 #endif
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4014 double r = 0.0;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4015 bool ok = StringToDouble(r, txt);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4016
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4017 #if 0
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4018 if (ok)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4019 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4020 printf("OK for txt = \"%s\" and r = %.17e\n", txt, r);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4021 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4022 else
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4023 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4024 printf("Not ok for txt = \"%s\" and r = %.17e\n", txt, r);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4025 ok = StringToDouble(r, txt);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4026 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4027 #endif
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4028
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4029 EXPECT_TRUE(ok);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4030
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4031 #if 0
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4032 if (fabs(b - r) > actualTolerance)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4033 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4034 printf("NOK fabs(b (%.17f) - r (%.17f)) ((%.17f)) > actualTolerance (%.17f)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4035 printf("NOK fabs(b (%.17e) - r (%.17e)) ((%.17e)) > actualTolerance (%.17e)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4036 ok = StringToDouble(r, txt);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4037 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4038 else
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4039 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4040 printf("OK fabs(b (%.17f) - r (%.17f)) ((%.17f)) <= actualTolerance (%.17f)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4041 printf("OK fabs(b (%.17e) - r (%.17e)) ((%.17e)) <= actualTolerance (%.17e)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4042 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4043 #endif
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4044 EXPECT_NEAR(b, r, actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4045 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4046 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4047
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4048 TEST(GenericToolbox, TestStringToDoubleHardNegScientific)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4049 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4050 using OrthancStone::GenericToolbox::StringToDouble;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4051 const double TOLERANCE = 0.00000000000001;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4052
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4053 size_t i = 0;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4054 const size_t COUNT = 125;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4055 //const double FACTOR = 1.000000000171271211;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4056 const double FACTOR = 1.71271211;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4057 for (double b = -1.0 * DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4058 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4059 // the tolerance must be adapted depending on the exponent
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4060 double exponent = (b == 0) ? 0 : 1.0 + std::floor(std::log10(std::fabs(b)));
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4061 double actualTolerance = TOLERANCE * pow(10.0, exponent);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4062
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4063 char txt[1024];
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4064 #if defined(_MSC_VER)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4065 sprintf_s(txt, "%.17e", b);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4066 #else
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4067 snprintf(txt, sizeof(txt) - 1, "%.17e", b);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4068 #endif
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4069 double r = 0.0;
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4070 bool ok = StringToDouble(r, txt);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4071
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4072 #if 0
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4073 if (ok)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4074 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4075 printf("OK for txt = \"%s\" and r = %.17e\n", txt, r);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4076 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4077 else
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4078 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4079 printf("Not ok for txt = \"%s\" and r = %.17e\n", txt, r);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4080 ok = StringToDouble(r, txt);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4081 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4082 #endif
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4083
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4084 EXPECT_TRUE(ok);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4085
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4086 #if 0
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4087 if (fabs(b - r) > actualTolerance)
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4088 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4089 printf("NOK fabs(b (%.17f) - r (%.17f)) ((%.17f)) > actualTolerance (%.17f)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4090 printf("NOK fabs(b (%.17e) - r (%.17e)) ((%.17e)) > actualTolerance (%.17e)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4091 ok = StringToDouble(r, txt);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4092 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4093 else
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4094 {
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4095 printf("OK fabs(b (%.17f) - r (%.17f)) ((%.17f)) <= actualTolerance (%.17f)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4096 printf("OK fabs(b (%.17e) - r (%.17e)) ((%.17e)) <= actualTolerance (%.17e)\n", b, r, fabs(b - r), actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4097 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4098 #endif
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4099 EXPECT_NEAR(b, r, actualTolerance);
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4100 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4101 }
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4102
f68da12e852b Added scientific notation support to StringToDouble
Benjamin Golinvaux <bgo@osimis.io>
parents: 1101
diff changeset
4103
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4104 TEST(GenericToolbox, TestStringToDoubleHardNegScientific_lexical_cast_vs_StringToDouble)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4105 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4106 using OrthancStone::GenericToolbox::StringToDouble;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4107 const double TOLERANCE = 0.00000000000001;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4108
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4109 size_t i = 0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4110 const size_t COUNT = 125;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4111 //const double FACTOR = 1.000000000171271211;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4112 const double FACTOR = 1.71271211;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4113
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4114 double total_us_StringToDouble = 0.0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4115 double total_us_lexical_cast = 0.0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4116 int64_t numConversions = 0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4117
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4118 for (double b = -1.0 * DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4119 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4120 // the tolerance must be adapted depending on the exponent
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4121 double exponent = (b == 0) ? 0 : 1.0 + std::floor(std::log10(std::fabs(b)));
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4122 double actualTolerance = TOLERANCE * pow(10.0, exponent);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4123
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4124 char txt[1024];
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4125 #if defined(_MSC_VER)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4126 sprintf_s(txt, "%.17e", b);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4127 #else
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4128 snprintf(txt, sizeof(txt) - 1, "%.17e", b);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4129 #endif
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4130 double r = 0.0;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4131
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4132 bool ok = true;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4133
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4134 {
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
4135 boost::posix_time::ptime start = boost::posix_time::microsec_clock::local_time();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4136 for (size_t i = 0; i < NUM_TIMINGS_CONVS; ++i)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4137 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4138 ok = StringToDouble(r, txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4139 }
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
4140 boost::posix_time::ptime end = boost::posix_time::microsec_clock::local_time();
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
4141 total_us_StringToDouble += (end - start).total_microseconds();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4142 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4143
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4144 {
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
4145 boost::posix_time::ptime start = boost::posix_time::microsec_clock::local_time();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4146 for (size_t i = 0; i < NUM_TIMINGS_CONVS; ++i)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4147 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4148 try
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4149 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4150 r = boost::lexical_cast<double>(txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4151 ok = true;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4152 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4153 catch (boost::bad_lexical_cast& )
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4154 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4155 ok = false;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4156 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4157 }
1189
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
4158 boost::posix_time::ptime end = boost::posix_time::microsec_clock::local_time();
09fc591d8ff9 replacing boost::chrono by boost::posix_time for older compilers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1183
diff changeset
4159 total_us_lexical_cast += (end - start).total_microseconds();
1181
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4160 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4161 numConversions += NUM_TIMINGS_CONVS;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4162
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4163 #if 0
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4164 if (ok)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4165 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4166 printf("OK for txt = \"%s\" and r = %.17e\n", txt, r);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4167 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4168 else
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4169 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4170 printf("Not ok for txt = \"%s\" and r = %.17e\n", txt, r);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4171 ok = StringToDouble(r, txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4172 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4173 #endif
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4174
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4175 EXPECT_TRUE(ok);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4176
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4177 #if 0
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4178 if (fabs(b - r) > actualTolerance)
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4179 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4180 printf("NOK fabs(b (%.17f) - r (%.17f)) ((%.17f)) > actualTolerance (%.17f)\n", b, r, fabs(b - r), actualTolerance);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4181 printf("NOK fabs(b (%.17e) - r (%.17e)) ((%.17e)) > actualTolerance (%.17e)\n", b, r, fabs(b - r), actualTolerance);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4182 ok = StringToDouble(r, txt);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4183 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4184 else
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4185 {
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4186 printf("OK fabs(b (%.17f) - r (%.17f)) ((%.17f)) <= actualTolerance (%.17f)\n", b, r, fabs(b - r), actualTolerance);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4187 printf("OK fabs(b (%.17e) - r (%.17e)) ((%.17e)) <= actualTolerance (%.17e)\n", b, r, fabs(b - r), actualTolerance);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4188 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4189 #endif
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4190 EXPECT_NEAR(b, r, actualTolerance);
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4191 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4192
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4193 std::cout << "Total time (us) for " << numConversions
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4194 << " conversions using StringToDouble (WITH scientific notation) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4195 << static_cast<int64_t>(total_us_StringToDouble) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4196
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4197 std::cout << "Time per conversion using StringToDouble (ns) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4198 << (int64_t)( (total_us_StringToDouble*1000) / ((double)numConversions)) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4199
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4200 std::cout << "Total time (us) for " << numConversions
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4201 << " conversions using boost::lexical_cast (WITH scientific notation) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4202 << static_cast<int64_t>(total_us_lexical_cast) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4203
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4204 std::cout << "Time per conversion using boost::lexical_cast (ns) = "
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4205 << (int64_t)( (total_us_lexical_cast * 1000) / ((double)numConversions)) << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4206
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4207 std::cout << "StringToDouble is " << (int)((total_us_lexical_cast / total_us_StringToDouble)+ 0.5) << " times faster than boost::lexical_cast" << std::endl;
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4208 }
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4209
bf08d28bc652 Added timing tests
Benjamin Golinvaux <bgo@osimis.io>
parents: 1166
diff changeset
4210
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4211 TEST(GenericToolbox, TestStringToIntegerHard)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4212 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4213 using OrthancStone::GenericToolbox::StringToInteger;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4214
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4215 size_t i = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4216 const size_t COUNT = 125;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4217 //const double FACTOR = 1.000000000171271211;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4218 const double FACTOR = 1.71271211;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4219 for (double b = DBL_EPSILON; b < DBL_MAX && i < COUNT; ++i, b *= FACTOR)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4220 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4221 int64_t bi = static_cast<int64_t>(b);
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
4222
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4223 char txt[1024];
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4224 #if defined(_MSC_VER)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4225 # if (_MSC_VER > 1800)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4226 sprintf_s(txt, "%lld", bi);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4227 # else
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4228 sprintf_s(txt, "%I64d", bi);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4229 # endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4230 #else
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
4231 snprintf(txt, sizeof(txt) - 1, "%" PRId64, bi); // https://stackoverflow.com/a/9225648/881731
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4232 #endif
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
4233
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4234 int64_t r = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4235 bool ok = StringToInteger<int64_t>(r, txt);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4236 EXPECT_TRUE(ok);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4237 EXPECT_EQ(bi, r);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4238 #if 0
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4239 if (ok)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4240 {
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
4241 printf("OK for b = %.17f bi = %" PRId64 " txt = \"%s\" and r = %" PRId64 "\n", b, bi, txt, r);
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4242 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4243 else
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4244 {
1679
5b8b88e5bfd6 successfully running unit tests in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1587
diff changeset
4245 printf("NOK for b = %.17f bi = %" PRId64 " txt = \"%s\" and r = %" PRId64 "\n", b, bi, txt, r);
1101
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4246 ok = StringToInteger<int64_t>(r, txt);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4247 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4248 #endif
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4249 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4250 }
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4251
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4252
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4253 TEST(GenericToolbox, TestGetRgbValuesFromString)
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4254 {
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4255 using OrthancStone::GenericToolbox::GetRgbValuesFromString;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4256
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4257 uint8_t red = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4258 uint8_t green = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4259 uint8_t blue = 0;
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4260
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4261 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, ""));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4262 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, " "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4263 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, "rgb() "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4264 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, "rgb(12,30 2563) "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4265 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, "rgb(12,30 2563,45) "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4266 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, "rgb(12,303.23,45)"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4267 EXPECT_FALSE(GetRgbValuesFromString(red, green, blue, "rgb(12,303,45 "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4268
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4269 ASSERT_TRUE(GetRgbValuesFromString(red, green, blue, "rgb(12,255,45)"));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4270 EXPECT_EQ(12, red);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4271 EXPECT_EQ(255, green);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4272 EXPECT_EQ(45, blue);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4273
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4274 ASSERT_TRUE(GetRgbValuesFromString(red, green, blue, " rgb ( 72 , 257 , 47 ) "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4275 EXPECT_EQ(72, red);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4276 EXPECT_EQ(1, green); //rollover 255 --> 255, 256 --> 0, 257 --> 1,...
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4277 EXPECT_EQ(47, blue);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4278
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4279 ASSERT_TRUE(GetRgbValuesFromString(red, green, blue, " rgb ( 72 , 247 , 47 ) "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4280 EXPECT_EQ(72, red);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4281 EXPECT_EQ(247, green);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4282 EXPECT_EQ(47, blue);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4283
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4284 ASSERT_TRUE(GetRgbValuesFromString(red, green, blue, " rgb ( 000, 0, 000) "));
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4285 EXPECT_EQ(0, red);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4286 EXPECT_EQ(0, green);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4287 EXPECT_EQ(0, blue);
141593f1aa88 fix build on ubuntu
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1080
diff changeset
4288 }
1328
fd616c4a5904 Added mechanism to prevent callbacks from being sent on dead WebAssemblyViewport objects
Benjamin Golinvaux <bgo@osimis.io>
parents: 1279
diff changeset
4289
1331
ab81ee8fce1f - Viewport is not passed and stored as a shared_ptr instead
Benjamin Golinvaux <bgo@osimis.io>
parents: 1329
diff changeset
4290
ab81ee8fce1f - Viewport is not passed and stored as a shared_ptr instead
Benjamin Golinvaux <bgo@osimis.io>
parents: 1329
diff changeset
4291
ab81ee8fce1f - Viewport is not passed and stored as a shared_ptr instead
Benjamin Golinvaux <bgo@osimis.io>
parents: 1329
diff changeset
4292
ab81ee8fce1f - Viewport is not passed and stored as a shared_ptr instead
Benjamin Golinvaux <bgo@osimis.io>
parents: 1329
diff changeset
4293
ab81ee8fce1f - Viewport is not passed and stored as a shared_ptr instead
Benjamin Golinvaux <bgo@osimis.io>
parents: 1329
diff changeset
4294
ab81ee8fce1f - Viewport is not passed and stored as a shared_ptr instead
Benjamin Golinvaux <bgo@osimis.io>
parents: 1329
diff changeset
4295