rust/library/alloc/tests/fmt.rs
2020-07-27 19:51:13 -05:00

8 lines
142 B
Rust

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