diff options
author | Brad Pitcher <bradpitcher@gmail.com> | 2012-01-08 19:40:04 (GMT) |
---|---|---|
committer | Brad Pitcher <bradpitcher@gmail.com> | 2012-01-08 19:40:04 (GMT) |
commit | 28f5f7a91025a077dad07fe4c86f079ab9c735b7 (patch) | |
tree | 45d60c489d384b9ef4749ac52ae17e3f93856416 /tests | |
parent | f3e6e8168bac6b14383d1d321de7dcf122e0b7de (diff) |
added tests passing infinity to various functions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/regression/echotest/inf-tests-expected.txt | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index edab744..5343252 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -599,7 +599,8 @@ list(APPEND ECHO_FILES ${FUNCTION_FILES} ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/builtin-tests.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/dim-all.scad ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/string-test.scad - ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/string-indexing.scad) + ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/string-indexing.scad + ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/inf-tests.scad) list(APPEND DUMPTEST_FILES ${MINIMAL_FILES} ${FEATURES_FILES} ${EXAMPLE_FILES}) list(APPEND DUMPTEST_FILES ${CMAKE_SOURCE_DIR}/../testdata/scad/misc/escape-test.scad) diff --git a/tests/regression/echotest/inf-tests-expected.txt b/tests/regression/echotest/inf-tests-expected.txt new file mode 100644 index 0000000..adac240 --- /dev/null +++ b/tests/regression/echotest/inf-tests-expected.txt @@ -0,0 +1,23 @@ +ECHO: inf +ECHO: -inf +ECHO: -nan +ECHO: -nan +ECHO: -nan +ECHO: nan +ECHO: nan +ECHO: 90.0000000000000 +ECHO: -90.000000000000 +ECHO: 135.000000000000 +ECHO: inf +ECHO: inf +ECHO: undef +ECHO: inf +ECHO: inf +ECHO: inf +ECHO: -inf +ECHO: inf +ECHO: inf +ECHO: 1.00000000000000 +ECHO: -1.0000000000000 +ECHO: inf +ECHO: -nan |