diff options
| author | Brian Anderson <[email protected]> | 2011-02-27 14:30:44 -0500 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-02 10:28:14 -0800 |
| commit | fe5de6bfffee3c277f540517b5766547f34e81c7 (patch) | |
| tree | 0c93def17b39f88ac2dca3e83fe5fb7416cfd058 /src/test | |
| parent | Add fold, typecheck and trans for expr_ext (diff) | |
| download | rust-fe5de6bfffee3c277f540517b5766547f34e81c7.tar.xz rust-fe5de6bfffee3c277f540517b5766547f34e81c7.zip | |
Parse parameter types for fmt extension
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/syntax-extension-fmt.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/run-pass/syntax-extension-fmt.rs b/src/test/run-pass/syntax-extension-fmt.rs index 0d1d7082..b7076c81 100644 --- a/src/test/run-pass/syntax-extension-fmt.rs +++ b/src/test/run-pass/syntax-extension-fmt.rs @@ -1,14 +1,13 @@ -//use std; -//import std._str; +use std; +import std._str; fn test(str actual, str expected) { log actual; log expected; - //check (_str.eq(actual, expected)); + check (_str.eq(actual, expected)); } fn main() { - /*test(#fmt("hello %d friends and %s things", 10, "formatted"), - "hello 10 friends and formatted things");*/ - log #fmt("test"); + test(#fmt("hello %d friends and %s things", 10, "formatted"), + "hello 10 friends and formatted things"); } |