mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-21 11:03:09 +00:00
Exclude percent encoding from skeptic (#561)
* Exclude percent encoding from skeptic * Exclude tests that are affected by skeptic #111 * More failing tests exlcuded from Skeptic * add ignore to infostring
This commit is contained in:
parent
084f51cff9
commit
bc641257e7
7 changed files with 8 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ target/
|
|||
book/
|
||||
*.swp
|
||||
lines.txt
|
||||
.idea/
|
|
@ -5,7 +5,7 @@
|
|||
Randomly generates a tuple `(i32, bool, f64)` and variable of user defined type `Point`.
|
||||
Implements the [`Distribution`] trait on type Point for [`Standard`] in order to allow random generation.
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
extern crate rand;
|
||||
|
||||
use rand::Rng;
|
||||
|
|
|
@ -11,7 +11,7 @@ generator [`rand::Rng`].
|
|||
The [distributions available are documented here][rand-distributions]. An example using the
|
||||
[`Normal`] distribution is shown below.
|
||||
|
||||
```rust
|
||||
```
|
||||
extern crate rand;
|
||||
|
||||
use rand::distributions::{Normal, Distribution};
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Randomly generates a string of given length ASCII characters in the range `A-Z,
|
||||
a-z, 0-9`, with [`Alphanumeric`] sample.
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
extern crate rand;
|
||||
|
||||
use rand::{thread_rng, Rng};
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
Generates a random value within half-open `[0, 10)` range (not including `10`) with [`Rng::gen_range`].
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
extern crate rand;
|
||||
|
||||
use rand::Rng;
|
||||
|
@ -20,7 +20,7 @@ fn main() {
|
|||
This has the same effect, but may be faster when repeatedly generating numbers
|
||||
in the same range.
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ values in parallel. Although [multiple options]
|
|||
exist to sort an enumerable data type, [`par_sort_unstable`]
|
||||
is usually faster than [stable sorting] algorithms.
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
extern crate rand;
|
||||
extern crate rayon;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Encode an input string with [percent-encoding] using the [`utf8_percent_encode`]
|
|||
function from the `percent-encoding` crate. Then decode using the [`percent_decode`]
|
||||
function.
|
||||
|
||||
```rust
|
||||
```rust,ignore
|
||||
extern crate percent_encoding;
|
||||
|
||||
use percent_encoding::{utf8_percent_encode, percent_decode, AsciiSet, CONTROLS};
|
||||
|
|
Loading…
Reference in a new issue