about summary refs log tree commit diff
path: root/src/libextra/test.rs
AgeCommit message (Collapse)AuthorLines
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.
2013-06-28Convert vec::{partition, partitioned} to methods.Huon Wilson-1/+1
2013-06-27Convert vec::{head, tail, init, last} (and similar fns) to methods.Huon Wilson-1/+1
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-7/+7
2013-06-26Looser restrictions on what can be captured in unbounded traits.Ben Blum-1/+1
2013-06-26Refactor extra::term a bitKevin Ballard-7/+7
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
2013-06-24extra: Make test runner compatible with newschedBrian Anderson-13/+4
2013-06-23vec: remove BaseIter implementationDaniel Micay-3/+3
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-16auto merge of #7123 : huonw/rust/more-str, r=thestingerbors-2/+1
Moves all the remaining functions that could reasonably be methods to be methods, except for some FFI ones (which I believe @erickt is working on, possibly) and `each_split_within`, since I'm not really sure the details of it (I believe @kimundi wrote the current implementation, so maybe he could convert it to an external iterator method on `StrSlice`, e.g. `word_wrap_iter(&self) -> WordWrapIterator<'self>`, where `WordWrapIterator` impls `Iterator<&'self str>`. It probably won't be too hard, since it's already a state machine.) This also cleans up the comparison impls for the string types, except I'm not sure how the lang items `eq_str` and `eq_str_uniq` need to be handled, so they (`eq_slice` and `eq`) remain stand-alone functions.
2013-06-15rm vec::uniq_lenDaniel Micay-1/+1
2013-06-16std: continue improving the comparison trait impls for str.Huon Wilson-2/+1
This moves them all into the traits submodule, and delegates Ord to the TotalOrd instance. It also deletes the stand-alone lt, gt, ge and le functions.
2013-06-10std: remove str::contains in favour of the methodHuon Wilson-1/+1
2013-06-10std: replace str::find_str* with a methodHuon Wilson-2/+2