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+
111use 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]
5264fn 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