about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <andersrb@gmail.com>2011-02-27 14:30:44 -0500
committerGraydon Hoare <graydon@mozilla.com>2011-03-02 10:28:14 -0800
commitfe5de6bfffee3c277f540517b5766547f34e81c7 (patch)
tree0c93def17b39f88ac2dca3e83fe5fb7416cfd058 /src/test
parentf1500e5872d03e3ec3b140060641136a2ff5a15a (diff)
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 0d1d708297f..b7076c8176d 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");
 }