/src/test/test_ext_math.h

https://github.com/kevlund/hiphop-php · C Header · 82 lines · 56 code · 8 blank · 18 comment · 0 complexity · 602e5293ab30ed9e9f6a7b04654f67fb MD5 · raw file

  1. /*
  2. +----------------------------------------------------------------------+
  3. | HipHop for PHP |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | http://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef __TEST_EXT_MATH_H__
  17. #define __TEST_EXT_MATH_H__
  18. // >>>>>> Generated by idl.php. Do NOT modify. <<<<<<
  19. #include <test/test_cpp_ext.h>
  20. ///////////////////////////////////////////////////////////////////////////////
  21. class TestExtMath : public TestCppExt {
  22. public:
  23. virtual bool RunTests(const std::string &which);
  24. bool test_pi();
  25. bool test_min();
  26. bool test_max();
  27. bool test_abs();
  28. bool test_is_finite();
  29. bool test_is_infinite();
  30. bool test_is_nan();
  31. bool test_ceil();
  32. bool test_floor();
  33. bool test_round();
  34. bool test_deg2rad();
  35. bool test_rad2deg();
  36. bool test_decbin();
  37. bool test_dechex();
  38. bool test_decoct();
  39. bool test_bindec();
  40. bool test_hexdec();
  41. bool test_octdec();
  42. bool test_base_convert();
  43. bool test_pow();
  44. bool test_exp();
  45. bool test_expm1();
  46. bool test_log10();
  47. bool test_log1p();
  48. bool test_log();
  49. bool test_cos();
  50. bool test_cosh();
  51. bool test_sin();
  52. bool test_sinh();
  53. bool test_tan();
  54. bool test_tanh();
  55. bool test_acos();
  56. bool test_acosh();
  57. bool test_asin();
  58. bool test_asinh();
  59. bool test_atan();
  60. bool test_atanh();
  61. bool test_atan2();
  62. bool test_hypot();
  63. bool test_fmod();
  64. bool test_sqrt();
  65. bool test_getrandmax();
  66. bool test_srand();
  67. bool test_rand();
  68. bool test_mt_getrandmax();
  69. bool test_mt_srand();
  70. bool test_mt_rand();
  71. bool test_lcg_value();
  72. };
  73. ///////////////////////////////////////////////////////////////////////////////
  74. #endif // __TEST_EXT_MATH_H__