summary refs log tree commit diff stats
path: root/tests/float
Commit message (Collapse)AuthorAgeFilesLines
* make float32 literals stringifying behave in JS the same as in C (#22500)ringabout2023-08-171-3/+2
|
* fixes #21847; let `parseFloat` behave like `strtod` (#21854)ringabout2023-05-171-2/+8
|
* clean up SOME pending/xxx/issue link comments (#21826)metagn2023-05-111-2/+1
| | | | | * clean up SOME pending/xxx/issue link comments * great
* fixes ptr to cstring warnings[backport] (#20848)ringabout2022-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix =#13790 ptr char (+friends) should not implicitly convert to cstring * Apply suggestions from code review * first round; compiles on windows * nimPreviewSlimSystem * conversion is unsafe, cast needed * fixes more tests * fixes asyncnet * another try another error * last one * true * one more * why bugs didn't show at once * add `nimPreviewCstringConversion` switch * typo * fixes ptr to cstring warnings[backport] * add fixes Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* rename nimFpRoundtrips => nimPreviewFloatRoundtrip (#18566)Timothee Cour2021-07-231-5/+5
|
* make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531)Timothee Cour2021-07-202-21/+97
| | | | | | * compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string
* make dragonbox opt-in via -d:nimFpRoundtrips (#18504)Andreas Rumpf2021-07-162-0/+5
| | | | | | | * make dragonbox opt-in via -d:nimFpRoundtrips * make tests green again * make tests green again
* fixes #18400 (#18402)Andreas Rumpf2021-06-301-0/+6
|
* fix #7717 roundtrip float to string; fix `parseFloat` for js (#18248)Timothee Cour2021-06-132-28/+84
| | | | | | | * refs #7717 roundtrip float to string * make parseFloat more correct * improve float tests * improve float tests * cleanup
* added float32 schubfach algorithm; wip (#18155)Andreas Rumpf2021-06-031-0/+5
| | | | | * added float32 schubfach algorithm; wip * fixes #18418
* use dragonbox algorithm; alternative to #18008 (#18139)Andreas Rumpf2021-06-011-4/+4
| | | | | * use dragonbox algorithm; alternative to #18008 * removed unsafe code
* fix #16469 vm float constants: do not conflate -0.0 and 0.0 (#16470)Timothee Cour2020-12-271-1/+14
| | | | | * fix #16469 vm float constants: do not conflate -0.0 and 0.0 * fix test for 32bit
* targets: use cpp instead of c++ everywhere (was by far the most common) (#15961)Timothee Cour2020-11-141-1/+1
|
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-282-2/+2
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-082-27/+17
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-072-17/+27
| | | | * printing float values will have one more digit. Fixes #13196
* remove unused imports from testsnarimiran2019-11-061-1/+1
|
* azure: disable failing testsLeorize2019-10-031-4/+5
|
* fix #10305 nim cpp is now nan-correct at CT (#10310)Timothee Cour2019-01-151-0/+28
| | | | | * fix #10305 nim cpp is now nan-correct at CT * add example where simply `nim cpp -d:release` would exhibit nan bug
* Testament: refactoring; makes the test joiner greenAraq2018-12-111-5/+6
|
* require errormsg to be specified before file.Arne Döring2018-12-119-26/+20
|
* make `mod` on floats available in the VM (#9591)skilchen2018-11-051-0/+130
| | | | | | * make `mod` on floats available in the VM * add testcase * removed no longer needed imports
* update testcooldome2018-04-291-1/+13
|
* Add a testcooldome2018-04-291-0/+37
|
* Fix for isssue in parseBiggestFloat #7060 (#7061)cooldome2018-01-111-0/+6
|
* Added 'lenient ops' module (#6754)Fabian Keller2017-11-211-0/+100
| | | | | | | | | | | | | | | | * added 'lenient ops' module * made lenient ops inline/noSideEffect; updated copyright * moved tests into external module * added warning for the '==' operator * mentioned lenientops in the standard library overview * removed test on nimout -- too fragile * removed `==` and moved doc link to core section
* make more tests greenAraq2017-11-011-6/+0
|
* fixes #6606 (#6610)Fredrik Høisæther Rasch2017-10-271-0/+22
|
* make tests green again; closes #5861Andreas Rumpf2017-10-101-1/+1
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* Fixes #5821 (float32 literal comparison issue) (#5825)Dominik Picheta2017-05-171-0/+13
| | | | * Remove processing hints for async procs. * Fixes #5821.
* testament: OS specific disablesAraq2017-01-311-0/+1
|
* made test green for WindowsAraq2016-09-301-2/+4
|
* fixes issue 4212 && add test for various valid zero floats.Parashurama2016-05-251-13/+21
|
* fixes #4212Andreas Rumpf2016-05-251-1/+1
|
* fixes some issues with underscores in float literals. add more tests.Parashurama2016-05-192-0/+47
| | | | | | fixes some potential issues with underscores in float literals. adds more checks for badly positionned underscores in float literals. adds more test files.
* fix issue 4181. add testcase.Parashurama2016-05-181-0/+15
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* make tests greenAraq2014-08-313-5/+5
|
* further adaptationsAraq2014-08-291-2/+2
|
* Fixed parsing of float literals.Reimer Behrends2014-05-231-0/+42
| | | | | | | | | Float literals were not parsed properly when their fractional part exceeded 53 significant bits. This affected in particular math.PI and math.E. Rather than reinventing the wheel, this patch reuses C's strtod() implementation, which already does the heavy lifting with respect to correctness, though some caution is necessary to keep float parsing locale-independent.
* new tester; all tests categorizedAraq2014-01-133-0/+54