Created
August 6, 2010 14:01
-
-
Save pedrodelgallego/511352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __re = new RegExp(x,"g"); | |
var __instance = String("asdf"); | |
var __str = "1"; | |
////////////////////////////////////////////////////////////////////////////// | |
//CHECK#1 | |
if (__instance.replace(__re, __str) !== "1a1s1d1f1") { | |
$ERROR('#1: var x; var __re = new RegExp(x,"g"); __instance = String("asdf"); __str = "1"; __instance.replace(__re, __str) === "1a1s1d1f1". Actual: '+__instance.replace(__re, __str) ); | |
} | |
// | |
////////////////////////////////////////////////////////////////////////////// | |
var x; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment