浏览代码

added test pattern to EReg unit test

mockey 9 年之前
父节点
当前提交
eacecdf0c4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/unit/src/unitstd/EReg.unit.hx

+ 1 - 0
tests/unit/src/unitstd/EReg.unit.hx

@@ -95,6 +95,7 @@ pos.len == 2;
 ~/href="(.*?)"/g.replace('lead href="foo" href="bar" trail',"$1") == "lead foo bar trail";
 ~/href="(.*?)"/g.replace('lead href="foo" href="bar" trail',"$$$1$$") == "lead $foo$ $bar$ trail";
 //~/href="(.*?)"/g.replace('lead href="foo" href="bar" trail',"$$$2$$") == "lead $$2$ $$2$ trail";
+~/a(b)c/g.replace("abcabc", "$1") == "bb";
 
 // map
 ~/(Hello)/.map("Hello World", function(e) return "Hallo") == "Hallo World";