Skip to content

Instantly share code, notes, and snippets.

@pedrodelgallego
Created August 6, 2010 13:12
Show Gist options
  • Save pedrodelgallego/511300 to your computer and use it in GitHub Desktop.
Save pedrodelgallego/511300 to your computer and use it in GitHub Desktop.
"use strict"
var __instance = new Number(100111122133144155);
Number.prototype.split = String.prototype.split;
var __split = __instance.split(1);
var __expected = ["","00","","","","22","33","44","60"];
//////////////////////////////////////////////////////////////////////////////
//CHECK#3
for(var index=0; index<__expected.length; index++) {
if (__split[index] !== __expected[index]) {
$error('#3.'+index+': __split['+index+'] === '+__expected[index]+'. Actual: '+__split[index] );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment