aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-02-27 14:30:44 -0500
committerGraydon Hoare <[email protected]>2011-03-02 10:28:14 -0800
commitfe5de6bfffee3c277f540517b5766547f34e81c7 (patch)
tree0c93def17b39f88ac2dca3e83fe5fb7416cfd058 /src/test
parentAdd fold, typecheck and trans for expr_ext (diff)
downloadrust-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.rs11
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");
}