aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-02-27 22:18:27 -0500
committerGraydon Hoare <[email protected]>2011-03-02 10:28:14 -0800
commit7350b7ff238c886018ecd3924298fa63895dd2f8 (patch)
treede5575852325b792e8a2449e285a0f924eddfa0a /src/test
parentRemove debug logging from extfmt (diff)
downloadrust-7350b7ff238c886018ecd3924298fa63895dd2f8.tar.xz
rust-7350b7ff238c886018ecd3924298fa63895dd2f8.zip
Add more #fmt tests
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/syntax-extension-fmt.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/run-pass/syntax-extension-fmt.rs b/src/test/run-pass/syntax-extension-fmt.rs
index b7076c81..ebb09f96 100644
--- a/src/test/run-pass/syntax-extension-fmt.rs
+++ b/src/test/run-pass/syntax-extension-fmt.rs
@@ -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");
}