Fix copy warnings in str
This commit is contained in:
parent
d9f1426e69
commit
7dde840dc6
1 changed files with 4 additions and 3 deletions
|
@ -2527,9 +2527,10 @@ mod tests {
|
||||||
assert split_within(~"hello", 15) == ~[~"hello"];
|
assert split_within(~"hello", 15) == ~[~"hello"];
|
||||||
|
|
||||||
let data = ~"\nMary had a little lamb\nLittle lamb\n";
|
let data = ~"\nMary had a little lamb\nLittle lamb\n";
|
||||||
assert split_within(data, 15) == ~[~"Mary had a little",
|
error!("~~~~ %?", split_within(data, 15));
|
||||||
~"lamb Little",
|
assert split_within(data, 15) == ~[~"Mary had a",
|
||||||
~"lamb"];
|
~"little lamb",
|
||||||
|
~"Little lamb"];
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue