diff options
| author | Brian Anderson <andersrb@gmail.com> | 2011-02-27 22:18:27 -0500 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-03-02 10:28:14 -0800 |
| commit | 7350b7ff238c886018ecd3924298fa63895dd2f8 (patch) | |
| tree | de5575852325b792e8a2449e285a0f924eddfa0a /src/test | |
| parent | 41a043303a53550590b2a8f10b3e57b79a92ecaa (diff) | |
Add more #fmt tests
Diffstat (limited to 'src/test')
| -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 b7076c8176d..ebb09f96ba2 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"); } |
