m1!{...}
-> m1!(...)
This commit is contained in:
parent
226fd87199
commit
29f32b4a72
380 changed files with 5330 additions and 2706 deletions
|
@ -1464,7 +1464,7 @@ pure fn is_char_boundary(s: &str, index: uint) -> bool {
|
|||
* let i = 0u;
|
||||
* while i < str::len(s) {
|
||||
* let {ch, next} = str::char_range_at(s, i);
|
||||
* std::io::println(fmt!{"%u: %c",i,ch});
|
||||
* std::io::println(fmt!("%u: %c",i,ch));
|
||||
* i = next;
|
||||
* }
|
||||
* ~~~
|
||||
|
@ -2138,7 +2138,7 @@ mod tests {
|
|||
fn t(s: ~str, c: char, u: ~[~str]) {
|
||||
log(debug, ~"split_byte: " + s);
|
||||
let v = split_char(s, c);
|
||||
debug!{"split_byte to: %?", v};
|
||||
debug!("split_byte to: %?", v);
|
||||
assert vec::all2(v, u, |a,b| a == b);
|
||||
}
|
||||
t(~"abc.hello.there", '.', ~[~"abc", ~"hello", ~"there"]);
|
||||
|
@ -2167,8 +2167,8 @@ mod tests {
|
|||
fn t(s: ~str, c: char, n: uint, u: ~[~str]) {
|
||||
log(debug, ~"splitn_byte: " + s);
|
||||
let v = splitn_char(s, c, n);
|
||||
debug!{"split_byte to: %?", v};
|
||||
debug!{"comparing vs. %?", u};
|
||||
debug!("split_byte to: %?", v);
|
||||
debug!("comparing vs. %?", u);
|
||||
assert vec::all2(v, u, |a,b| a == b);
|
||||
}
|
||||
t(~"abc.hello.there", '.', 0u, ~[~"abc.hello.there"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue