summary refs log tree commit diff
path: root/src/libextra/test.rs
AgeCommit message (Collapse)AuthorLines
2013-09-24Don't use libc::exit. #9473Brian Anderson-12/+11
This can cause unexpected errors in the runtime when done while scheduler threads are still initializing. Required some restructuring of the main_args functions in our libraries.
2013-09-23librustc: Remove `@fn` managed closures from the language.Patrick Walton-5/+0
2013-09-19Turned extra::getopts functions into methodsMarvin Löbel-11/+11
Some minor api and doc adjustments
2013-09-15Remove {uint,int,u64,i64,...}::from_str,from_str_radixblake2-ppc-3/+2
Remove these in favor of the two traits themselves and the wrapper function std::from_str::from_str. Add the function std::num::from_str_radix in the corresponding role for the FromStrRadix trait.
2013-09-14extra::test: Use Result instead of Either.blake2-ppc-11/+9
OptRes was combining a successful value with an error message, which fits the Result type perfectly.
2013-09-05extra: Don't overcommit test tasks. Closes #8660Brian Anderson-10/+1
The new scheduler makes better use of threads than the old.
2013-08-29extra: error message should reflact that RUST_TEST_TASKS should be strictly ↵Huon Wilson-1/+1
positive (zero is illegal).
2013-08-29Make the unit-test framework check RUST_TEST_TASKS over RUST_THREADS.Huon Wilson-4/+15
Fixes #7335.
2013-08-24auto merge of #8679 : singingboyo/rust/json-to-impl, r=alexcrichtonbors-1/+1
to_str, to_pretty_str, to_writer, and to_pretty_writer were at the top level of extra::json, this moves them into an impl for Json to match with what's been done for the rest of libextra and libstd. (or at least for vec and str) Also meant changing some tests. Closes #8676.
2013-08-23test: add support for sharding testsuite by passing --test-shard=a.bGraydon Hoare-2/+36
2013-08-22Enabled unit tests in std and extra.Vadim Chugunov-1/+0
2013-08-21Make json::to_xxx(&Json) fns Json::to_xxx(&self)Brandon Sanderson-1/+1
to_str, to_pretty_str, to_writer, and to_pretty_writer were at the top level of extra::json, this moves them into an impl for Json to match with what's been done for the rest of libextra and libstd.
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+2
2013-08-15vec: rm obsolete zip and zip_sliceDaniel Micay-9/+2
These are obsoleted by the generic iterator `zip` adaptor. Unlike these, it does not clone the elements or allocate a new vector by default.
2013-08-12Forbid pub/priv where it has no effectAlex Crichton-1/+1
Closes #5495
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-4/+4
cc #5898
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-1/+0
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-3/+3
cc #7887
2013-08-09Remove the C++ runtime. SayonaraBrian Anderson-1/+1
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-4/+4
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-29/+28
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-12/+12
this has been replaced by `for`
2013-08-02replace `range` with an external iteratorDaniel Micay-2/+1
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-11/+11
2013-07-30Do not enforce two newlines after the optionsJordi Boggiano-0/+1
2013-07-23extra: switch json from hashmaps to treemapsGraydon Hoare-2/+1
2013-07-18auto merge of #7840 : alexcrichton/rust/better-test-help, r=huonwbors-8/+52
Progress on #7824, closes #7825
2013-07-17libextra: Add a stray deriving or two.Patrick Walton-1/+8
2013-07-17librustc: Remove the `Copy` bound from the language.Patrick Walton-1/+0
2013-07-17test: Fix tests.Patrick Walton-1/+1
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-22/+27
2013-07-17extra: avoid possible divide-by-zero conditions test.Graydon Hoare-4/+5
2013-07-16Provide more useful messages when tests are given -h or --helpAlex Crichton-8/+52
Progress on #7824
2013-07-16extra: reduce bench loop max time to 3s.Graydon Hoare-2/+2
2013-07-16extra: Add metrics functions to test.Graydon Hoare-19/+72
2013-07-16extra: add tests for test::MetricMap, MetricDiff, ratchet.Graydon Hoare-5/+105
2013-07-11extra: add explicit ratchet-noise-percent option to benchmark ratchet, plus ↵Graydon Hoare-24/+50
a few test breaking fixes.
2013-07-11extra: add metrics ratchet to test driver.Graydon Hoare-83/+298
2013-07-11extra: factor ConsoleTestState methods into an impl, fix perf bug.Graydon Hoare-139/+148
It was re-reading terminfo on each line of output.
2013-07-11extra: simplify the bench stat loop, improve stability somewhat (?)Graydon Hoare-52/+42
2013-07-08Merge remote-tracking branch 'mozilla/master'Brian Anderson-12/+12
Conflicts: src/libextra/test.rs src/libstd/rt/global_heap.rs src/libstd/unstable/lang.rs src/libstd/vec.rs
2013-07-03Merge remote-tracking branch 'mozilla/master'Brian Anderson-156/+152
Conflicts: src/libextra/test.rs src/libstd/at_vec.rs src/libstd/cleanup.rs src/libstd/rt/comm.rs src/libstd/rt/global_heap.rs src/libstd/task/spawn.rs src/libstd/unstable/lang.rs src/libstd/vec.rs src/rt/rustrt.def.in src/test/run-pass/extern-pub.rs
2013-07-04Remove vec::{filter, filtered, filter_map, filter_mapped}, replaced by ↵Huon Wilson-4/+4
iterators.
2013-07-04Implement consuming iterators for ~[], remove vec::{consume, ↵Huon Wilson-1/+1
consume_reverse, map_consume}.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-7/+7
2013-06-30Convert vec::{reverse, swap} to methods.Huon Wilson-1/+1
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-20/+19
2013-06-29'Borrow' stack closures rather than copying them (e.g., "|x|f(x)"), in prep ↵Ben Blum-3/+3
for making them noncopyable.
2013-06-28libextra: Fix even more merge fallout.Patrick Walton-3/+0
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-124/+124
implementations. This should allow fewer symbols to be exported.