From aec191bc6cbb83884466800a750ecad0b37e254f Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 5 Nov 2015 10:25:57 +0100 Subject: remove test framework, it never works, most of the bugs found by the test framework turn out to be caused by errors in the tests instead of errors in the real code, people complain about it all the time, and basically this whole test framework causes more problems than it solves, solves issue #215 and solves issue #221 --- .../variables/011-012-value-casting-operators.h | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 tests/cpp/include/variables/011-012-value-casting-operators.h (limited to 'tests/cpp/include/variables/011-012-value-casting-operators.h') diff --git a/tests/cpp/include/variables/011-012-value-casting-operators.h b/tests/cpp/include/variables/011-012-value-casting-operators.h deleted file mode 100644 index 2d791b2..0000000 --- a/tests/cpp/include/variables/011-012-value-casting-operators.h +++ /dev/null @@ -1,52 +0,0 @@ -/** - * - * Test variables - * 011-value-casting-operators.phpt - * 012-value-casting-operators-double.phpt - * - */ - - - -/** - * Set up namespace - */ -namespace TestVariables { - - /* - * Test Php::Value casting operators - */ - void value_casting(Php::Parameters ¶ms) - { - Php::Value value = params[0]; - - int64_t value1 = value; - std::string value2 = value; - bool value4 = value; - - Php::out << " long:" << value1 << "\n string:" << value2 << "\n bool:" << bool2str(value4) << std::endl; - } - - - /* - * Test Php::Value casting operators - */ - void value_cast2double(Php::Parameters ¶ms) - { - Php::Value value = params[0]; - double value3 = value; - - /* - * The remark (from valmat). - * Somehow std::to_string truncates the tail of numbers of type `double` when converting it to a string. - * So I wrote my own function `double2str()`, which does not have this drawback. - */ - Php::out << double2str(value3) << std::endl; - } - - -/** - * End of namespace - */ -} - -- cgit v1.2.3