Changeset 468 for trunk/TestCase/SimpleTestCase/SPrintFTest.ab
- Timestamp:
- Mar 9, 2008, 12:00:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/SPrintFTest.ab
r385 r468 118 118 s = FormatFloatG(0.0000123456, 4, 0, None) 119 119 UnitTest("FormatFloatG(0.0000123456, precision = 4) = 1.234e-05", s, "1.234e-05") 120 s = FormatFloatG(ActiveBasic.Math.Detail.GetNaN(), DWORD_MAX, 0, None) 121 UnitTest(Ex"FormatFloatG(NaN) = \qnan\q", s, "nan") 122 s = FormatFloatG(ActiveBasic.Math.Detail.GetInf(False), DWORD_MAX, 0, Sign) 123 UnitTest(Ex"FormatFloatG(Inf, Sign) = \q+infinity\q", s, "+infinity") 120 124 121 125 s = FormatFloatA(1, DWORD_MAX, 0, None) … … 127 131 s = FormatFloatA(3.1415926535897932384626433832795, DWORD_MAX, 0, None) 128 132 UnitTest("FormatFloatA(π) = 0x1.921fb54442d18p+1", s, "0x1.921fb54442d18p+1") 133 s = FormatFloatA(3.1415926535897932384626433832795, 4, 0, None) 134 UnitTest("FormatFloatA(π, precision = 4) = 0x1.921fp+1", s, "0x1.921fp+1") 129 135 s = FormatFloatA(0, DWORD_MAX, 0, None) 130 136 UnitTest("FormatFloatA(0)", s, "0x0p+0")
Note:
See TracChangeset
for help on using the changeset viewer.