mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-01 09:33:26 +00:00
Add more #fmt tests
This commit is contained in:
parent
41a043303a
commit
7350b7ff23
@ -10,4 +10,7 @@ fn test(str actual, str expected) {
|
||||
fn main() {
|
||||
test(#fmt("hello %d friends and %s things", 10, "formatted"),
|
||||
"hello 10 friends and formatted things");
|
||||
test(#fmt("d: %d", 1), "d: 1");
|
||||
test(#fmt("i: %i", 2), "i: 2");
|
||||
test(#fmt("s: %s", "test"), "s: test");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user