diff options
| author | Brian Anderson <[email protected]> | 2011-02-27 22:18:27 -0500 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-02 10:28:14 -0800 |
| commit | 7350b7ff238c886018ecd3924298fa63895dd2f8 (patch) | |
| tree | de5575852325b792e8a2449e285a0f924eddfa0a /src | |
| parent | Remove debug logging from extfmt (diff) | |
| download | rust-7350b7ff238c886018ecd3924298fa63895dd2f8.tar.xz rust-7350b7ff238c886018ecd3924298fa63895dd2f8.zip | |
Add more #fmt tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/syntax-extension-fmt.rs | 3 |
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"); } |