about summary refs log tree commit diff
path: root/src/test/run-pass/float-nan.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-92/+0
2015-04-21test: Fix fallout in testsAlex Crichton-7/+4
2015-04-12Remove pretty-expanded from tests that use format_args!Ryan Prichard-1/+0
Now that the internals of `format_args!` are unstable, tests that use it don't compile after pretty-printing (unless they also declare the necessary feature).
2015-03-23rustdoc: Replace no-pretty-expanded with pretty-expandedBrian Anderson-0/+2
Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-0/+2
2014-03-14extra: Put the nail in the coffin, delete libextraAlex Crichton-2/+0
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
2014-02-14extern mod => extern crateAlex Crichton-1/+1
This was previously implemented, and it just needed a snapshot to go through
2013-10-01remove the `float` typeDaniel Micay-8/+8
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-19Rename the NaN and is_NaN methods to lowercase.Chris Morgan-19/+19
This is for consistency in naming conventions. - ``std::num::Float::NaN()`` is changed to ``nan()``; - ``std::num::Float.is_NaN()`` is changed to ``is_nan()``; and - ``std::num::strconv::NumStrConv::NaN()`` is changed to ``nan()``. Fixes #9319.
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-3/+4
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-05-22test: Update tests to use the new syntax.Patrick Walton-2/+2
2013-05-22test: Fix tests.Patrick Walton-6/+4
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-10/+10
2013-04-26Fix failing testBrendan Zabarauskas-67/+71
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-65/+65
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-65/+65
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-09-05test: "import" -> "use"Patrick Walton-1/+0
2012-01-05Merge branch 'master' into kmathStefan Plantikow-18/+18
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-1/+1
2011-12-07Restore accidentally overwritten testMarijn Haverbeke-18/+74
2011-12-07Change literal representation to not truncateMarijn Haverbeke-74/+18
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-11-15Replaced constant functions with actual constants in std and updated testsStefan Plantikow-3/+3
Fixes issue #1165
2011-10-28Add more isNaN testsMatt Brubeck-0/+8
2011-10-28Use IEEE 754 semantics for NaN (Issue #1084)Matt Brubeck-0/+74