Skip to content

Instantly share code, notes, and snippets.

@pedrodelgallego
Created August 2, 2010 14:30
Show Gist options
  • Save pedrodelgallego/504722 to your computer and use it in GitHub Desktop.
Save pedrodelgallego/504722 to your computer and use it in GitHub Desktop.
// CHECK#5
if (!(isFinite("string") === false)) {
$ERROR('#5: "string" === Not-a-Finite. Actual: ' + ("string"));
}
// CHECK#1
if (!(isFinite({}) === false)) {
$ERROR('#1: {} === Not-a-Finite. Actual: ' + ({}));
}
// CHECK#2
if (!(isFinite(new String("string")) === false)) {
$ERROR('#2: new String("string") === Not-a-Finite. Actual: ' + (new String("string")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment