Put str tests in a nested tests module

This commit is contained in:
Eryn Wells 2017-04-03 16:55:47 -04:00
parent 104b9b0864
commit 4a0586b1a5

View file

@ -62,6 +62,10 @@ impl CharAt for str {
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn index_before_is_well_behaved_for_ascii() {
let s = "abc";
@ -96,3 +100,4 @@ fn index_after_is_well_behaved_for_ascii() {
assert!(s.is_char_boundary(idx));
}
}
}