rust/src/liballoc/tests/fmt.rs
2018-12-25 21:08:33 -07:00

7 lines
142 B
Rust

use std::fmt;
#[test]
fn test_format() {
let s = fmt::format(format_args!("Hello, {}!", "world"));
assert_eq!(s, "Hello, world!");
}