소스 검색

one more customReplace test

Nicolas Cannasse 13 년 전
부모
커밋
8142b900de
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tests/unit/TestEReg.hx

+ 3 - 0
tests/unit/TestEReg.hx

@@ -71,6 +71,9 @@ class TestEReg extends Test {
 		// the best is to add a matchSub(s,pos,len)
 		eq( ~/a+/g.customReplace("aaabacx", function(r) return "[" + r.matchedLeft() + "]") , "[]b[aaab]cx" );
 		
+		// this one creates infinite loops on too most of the platforms ! TOFIX !
+		// eq( ~/x?/g.customReplace("aaabacx", function(r) return "[" + r.matched(0)+ "]") , "[]a[]a[]a[]b[]a[]c[][x]" );
+		
 		
 		#end
 	}