Skip to content

Commit 85919a0

Browse files
committed
Pass tidy for tests
1 parent 9b92a44 commit 85919a0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Diff for: src/libcore/tests/pattern.rs

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
111
use std::str::pattern::*;
212

313
// This macro makes it easier to write
@@ -42,7 +52,9 @@ impl From<Option<(usize, usize)>> for Step {
4252
}
4353
}
4454

45-
// XXXManishearth these tests focus on single-character searching (CharSearcher)
55+
// ignore-tidy-linelength
56+
57+
// FIXME(Manishearth) these tests focus on single-character searching (CharSearcher)
4658
// and on next()/next_match(), not next_reject(). This is because
4759
// the memchr changes make next_match() for single chars complex, but next_reject()
4860
// continues to use next() under the hood. We should add more test cases for all
@@ -51,7 +63,7 @@ impl From<Option<(usize, usize)>> for Step {
5163
#[test]
5264
fn test_simple_iteration() {
5365
search_asserts! ("abcdeabcd", 'a', "forward iteration for ASCII string",
54-
// a b c d e a b c d EOF
66+
// a b c d e a b c d EOF
5567
[next, next, next, next, next, next, next, next, next, next],
5668
[Matches(0, 1), Rejects(1, 2), Rejects(2, 3), Rejects(3, 4), Rejects(4, 5), Matches(5, 6), Rejects(6, 7), Rejects(7, 8), Rejects(8, 9), Done]
5769
);

0 commit comments

Comments
 (0)