about summary refs log tree commit diff
path: root/src/libcore/tests
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-12-22 11:19:50 +0530
committerManish Goregaokar <manishsmail@gmail.com>2017-12-25 14:41:16 +0530
commit85919a0b5f474783cb56cd433292865a40539665 (patch)
treee3883d63884ba2244e114942ad1ed91da37d5e27 /src/libcore/tests
parent9b92a4419d6a76a9de6d56adb3084d97e3e31d20 (diff)
Pass tidy for tests
Diffstat (limited to 'src/libcore/tests')
-rw-r--r--src/libcore/tests/pattern.rs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/libcore/tests/pattern.rs b/src/libcore/tests/pattern.rs
index 7fe274a79ed..d0fd15263b2 100644
--- a/src/libcore/tests/pattern.rs
+++ b/src/libcore/tests/pattern.rs
@@ -1,3 +1,13 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 use std::str::pattern::*;
 
 // This macro makes it easier to write
@@ -42,7 +52,9 @@ impl From<Option<(usize, usize)>> for Step {
     }
 }
 
-// XXXManishearth these tests focus on single-character searching  (CharSearcher)
+// ignore-tidy-linelength
+
+// FIXME(Manishearth) these tests focus on single-character searching  (CharSearcher)
 // and on next()/next_match(), not next_reject(). This is because
 // the memchr changes make next_match() for single chars complex, but next_reject()
 // 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 {
 #[test]
 fn test_simple_iteration() {
     search_asserts! ("abcdeabcd", 'a', "forward iteration for ASCII string",
-        // a            b              c              d              e              a              b              c              d              EOF 
+        // a            b              c              d              e              a              b              c              d              EOF
         [next,          next,          next,          next,          next,          next,          next,          next,          next,          next],
         [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]
     );