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
+
1
11
use std:: str:: pattern:: * ;
2
12
3
13
// This macro makes it easier to write
@@ -42,7 +52,9 @@ impl From<Option<(usize, usize)>> for Step {
42
52
}
43
53
}
44
54
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)
46
58
// and on next()/next_match(), not next_reject(). This is because
47
59
// the memchr changes make next_match() for single chars complex, but next_reject()
48
60
// 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 {
51
63
#[ test]
52
64
fn test_simple_iteration ( ) {
53
65
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
55
67
[ next, next, next, next, next, next, next, next, next, next] ,
56
68
[ 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 ]
57
69
) ;
0 commit comments