Ozan Can Altiok | e46419b | 2018-03-20 15:02:28 +0300 | [diff] [blame] | 1 | namespace java thrift.test |
| 2 | namespace cpp thrift.test |
| 3 | |
| 4 | // more tests on double constants (precision and type checks) |
| 5 | const double DOUBLE_ASSIGNED_TO_INT_CONSTANT_TEST = 1 |
| 6 | const double DOUBLE_ASSIGNED_TO_NEGATIVE_INT_CONSTANT_TEST = -100 |
| 7 | const double DOUBLE_ASSIGNED_TO_LARGEST_INT_CONSTANT_TEST = 9223372036854775807 |
| 8 | const double DOUBLE_ASSIGNED_TO_SMALLEST_INT_CONSTANT_TEST = -9223372036854775807 |
| 9 | const double DOUBLE_ASSIGNED_TO_DOUBLE_WITH_MANY_DECIMALS_TEST = 3.14159265359 |
| 10 | const double DOUBLE_ASSIGNED_TO_FRACTIONAL_DOUBLE_TEST = 1000000.1 |
| 11 | const double DOUBLE_ASSIGNED_TO_NEGATIVE_FRACTIONAL_DOUBLE_TEST = -1000000.1 |
| 12 | const double DOUBLE_ASSIGNED_TO_LARGE_DOUBLE_TEST = 1.7e+308 |
| 13 | const double DOUBLE_ASSIGNED_TO_LARGE_FRACTIONAL_DOUBLE_TEST = 9223372036854775816.43 |
| 14 | const double DOUBLE_ASSIGNED_TO_SMALL_DOUBLE_TEST = -1.7e+308 |
| 15 | const double DOUBLE_ASSIGNED_TO_NEGATIVE_BUT_LARGE_FRACTIONAL_DOUBLE_TEST = -9223372036854775816.43 |
| 16 | |
| 17 | const list<double> DOUBLE_LIST_TEST = [1,-100,100,9223372036854775807,-9223372036854775807,3.14159265359,1000000.1,-1000000.1,1.7e+308,-1.7e+308,9223372036854775816.43,-9223372036854775816.43] |