rust/src/test/run-pass/log-str.rs
2012-09-20 15:37:55 -07:00

8 lines
184 B
Rust

fn main() {
let act = sys::log_str(&~[1, 2, 3]);
assert ~"~[ 1, 2, 3 ]" == act;
let act = fmt!("%?/%6?", ~[1, 2, 3], ~"hi");
assert act == ~"~[ 1, 2, 3 ]/ ~\"hi\"";
}