about summary refs log tree commit diff
path: root/src/libextra/test.rs
AgeCommit message (Collapse)AuthorLines
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
2013-06-04std::cell: Modernize constructorsPhilipp Brüschweiler-1/+1
Part of #3853
2013-06-03auto merge of #6826 : cmr/rust/terminfo, r=thestingerbors-7/+12
This will let *everyone* (non-windows, at least) who can see colors see the glorious colors rustc produces.
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-5/+4
2013-05-31extra::term overhaulCorey Richardson-7/+12
2013-05-31auto merge of #6833 : fdr/rust/fix-warnings, r=Aatchbors-3/+1
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30Remove unnecessary 'use' formsDaniel Farina-3/+1
Fix a laundry list of warnings involving unused imports that glutted up compilation output. There are more, but there seems to be some false positives (where 'remedy' appears to break the build), but this particular set of fixes seems safe.
2013-05-30Remove copy bindings from patterns.Niko Matsakis-6/+5
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-4/+18
2013-05-23cleanup warnings from libextraErick Tryzelaar-2/+2