rust/src/test
bors 5acc998ed9 auto merge of #12098 : kballard/rust/from_utf8_lossy_tweak, r=huonw
MaybeOwned allows from_utf8_lossy to avoid allocation if there are no
invalid bytes in the input.

Before:
```
test str::bench::from_utf8_lossy_100_ascii                      ... bench:       183 ns/iter (+/- 5)
test str::bench::from_utf8_lossy_100_invalid                    ... bench:       341 ns/iter (+/- 15)
test str::bench::from_utf8_lossy_100_multibyte                  ... bench:       227 ns/iter (+/- 13)
test str::bench::from_utf8_lossy_invalid                        ... bench:       102 ns/iter (+/- 4)
test str::bench::is_utf8_100_ascii                              ... bench:         2 ns/iter (+/- 0)
test str::bench::is_utf8_100_multibyte                          ... bench:         2 ns/iter (+/- 0)
```

Now:
```
test str::bench::from_utf8_lossy_100_ascii                      ... bench:        96 ns/iter (+/- 4)
test str::bench::from_utf8_lossy_100_invalid                    ... bench:       318 ns/iter (+/- 10)
test str::bench::from_utf8_lossy_100_multibyte                  ... bench:       105 ns/iter (+/- 2)
test str::bench::from_utf8_lossy_invalid                        ... bench:       105 ns/iter (+/- 2)
test str::bench::is_utf8_100_ascii                              ... bench:         2 ns/iter (+/- 0)
test str::bench::is_utf8_100_multibyte                          ... bench:         2 ns/iter (+/- 0)
```
2014-02-08 05:01:30 -08:00
..
auxiliary Added tests to make tidy 2014-02-07 12:49:24 -06:00
bench Added tests to make tidy 2014-02-07 12:49:24 -06:00
codegen Add pub to all the codegen tests 2013-10-10 06:00:51 -07:00
compile-fail Update docs and tests for #[deriving(Show)]. 2014-02-08 13:53:21 +11:00
debug-info add a hack to fix debug-info tests under gdb 7.7 2014-02-07 21:22:47 -05:00
pretty Added tests to make tidy 2014-02-07 12:49:24 -06:00
run-fail Delete send_str, rewrite clients on top of MaybeOwned<'static> 2014-02-07 22:31:52 -08:00
run-make Added tests to make tidy 2014-02-07 12:49:24 -06:00
run-pass auto merge of #12098 : kballard/rust/from_utf8_lossy_tweak, r=huonw 2014-02-08 05:01:30 -08:00
run-pass-fulldeps Replaced with a single "quote" feature gate. 2014-02-04 22:03:00 +11:00