From 6652ede2c2167b2eb2ca685002710764d0986299 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 18 Feb 2012 18:37:26 +0100 Subject: nan vs. -nan fix to make inf-tests work under Linux diff --git a/src/value.cc b/src/value.cc index 48fea1a..c9dbd55 100644 --- a/src/value.cc +++ b/src/value.cc @@ -426,6 +426,10 @@ std::string Value::toString() const // Quick and dirty hack to work around floating point rounding differences // across platforms for testing purposes. { + if (this->num != this->num) { // Fix for avoiding nan vs. -nan across platforms + stream << "nan"; + break; + } std::stringstream tmp; tmp.precision(12); tmp.setf(std::ios_base::fixed); -- cgit v0.10.1 From bd72e2dc2381f9c1167900fe98e2cc922a0d608f Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 18 Feb 2012 18:37:53 +0100 Subject: Make MCAD submodule relative to openscad toplevel. diff --git a/.gitmodules b/.gitmodules index 4ab4cf0..6556377 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "libraries/MCAD"] path = libraries/MCAD - url = git@github.com:openscad/MCAD.git + url = ../MCAD.git -- cgit v0.10.1 From 45c180e8e36a5ee4bf1d7d611ac3f8127688420a Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 18 Feb 2012 18:44:45 +0100 Subject: Disable test causing floating point comparison issues diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0e74f58..881a750 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -657,6 +657,7 @@ disable_tests(dumptest_transform-tests dumptest_render-tests dumptest_difference-tests dumptest_intersection-tests + dumptest_text-search-test dumptest_example001 dumptest_example005 dumptest_example006 -- cgit v0.10.1