Skip to content

Commit 7350b7f

Browse files
brsongraydon
authored andcommitted
Add more #fmt tests
1 parent 41a0433 commit 7350b7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/run-pass/syntax-extension-fmt.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ fn test(str actual, str expected) {
1010
fn main() {
1111
test(#fmt("hello %d friends and %s things", 10, "formatted"),
1212
"hello 10 friends and formatted things");
13+
test(#fmt("d: %d", 1), "d: 1");
14+
test(#fmt("i: %i", 2), "i: 2");
15+
test(#fmt("s: %s", "test"), "s: test");
1316
}

0 commit comments

Comments
 (0)