From 4400842135799bee8bff35ce455ef3d88680d640 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 30 Oct 2006 10:38:55 -0500 Subject: ENH: Added test case for bug#3966. --- Tests/Complex/CMakeLists.txt | 11 +++++++++++ Tests/ComplexOneConfig/CMakeLists.txt | 11 +++++++++++ Tests/ComplexRelativePaths/CMakeLists.txt | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index 5a28e56..deb0800 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/CMakeLists.txt @@ -53,6 +53,17 @@ ENDMACRO(TEST_VAR_ARG) TEST_VAR_ARG(1 2 3) +# Floating-point comparison test. +IF(2.4 LESS 2.4) + MESSAGE(FATAL_ERROR "Failed: 2.4 LESS 2.4") +ENDIF(2.4 LESS 2.4) +IF(2.4 GREATER 2.4) + MESSAGE(FATAL_ERROR "Failed: 2.4 GREATER 2.4") +ENDIF(2.4 GREATER 2.4) +IF(NOT 2.4 EQUAL 2.4) + MESSAGE(FATAL_ERROR "Failed: NOT 2.4 EQUAL 2.4") +ENDIF(NOT 2.4 EQUAL 2.4) + # # Use the ansi CXX compile flag for building cmake # diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index 5a28e56..deb0800 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -53,6 +53,17 @@ ENDMACRO(TEST_VAR_ARG) TEST_VAR_ARG(1 2 3) +# Floating-point comparison test. +IF(2.4 LESS 2.4) + MESSAGE(FATAL_ERROR "Failed: 2.4 LESS 2.4") +ENDIF(2.4 LESS 2.4) +IF(2.4 GREATER 2.4) + MESSAGE(FATAL_ERROR "Failed: 2.4 GREATER 2.4") +ENDIF(2.4 GREATER 2.4) +IF(NOT 2.4 EQUAL 2.4) + MESSAGE(FATAL_ERROR "Failed: NOT 2.4 EQUAL 2.4") +ENDIF(NOT 2.4 EQUAL 2.4) + # # Use the ansi CXX compile flag for building cmake # diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt index 5a28e56..deb0800 100644 --- a/Tests/ComplexRelativePaths/CMakeLists.txt +++ b/Tests/ComplexRelativePaths/CMakeLists.txt @@ -53,6 +53,17 @@ ENDMACRO(TEST_VAR_ARG) TEST_VAR_ARG(1 2 3) +# Floating-point comparison test. +IF(2.4 LESS 2.4) + MESSAGE(FATAL_ERROR "Failed: 2.4 LESS 2.4") +ENDIF(2.4 LESS 2.4) +IF(2.4 GREATER 2.4) + MESSAGE(FATAL_ERROR "Failed: 2.4 GREATER 2.4") +ENDIF(2.4 GREATER 2.4) +IF(NOT 2.4 EQUAL 2.4) + MESSAGE(FATAL_ERROR "Failed: NOT 2.4 EQUAL 2.4") +ENDIF(NOT 2.4 EQUAL 2.4) + # # Use the ansi CXX compile flag for building cmake # -- cgit v0.12