Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var test_string = "1^^0^^0.000^^0^^0.0^^0.0^^0^^0^^0.0000^^0^^0^^0^^1^^2^^47^^1000^^";
- var good_array = [ "1", "0", "0.000", "0", "0.0", "0.0", "0", "0", "0.0000", "0", "0", "0", "1", "2", "47", "1000", ""]
- var test_count = 0;
- var test_array = new Array(20);
- var bad_split_count = new Array();
- var bad_split_time = new Array();
- function split_test ()
- {
- test_array = test_string.split('^^');
- var i;
- for (i = 0; i < 16; i++)
- {
- if (test_array[i] === good_array[i])
- {
- var good_item = true;
- }
- else
- {
- var d = new Date()
- bad_split_time.push(d);
- bad_split_count.push(test_count);
- break;
- }
- }
- test_count++;
- setTimeout(split_test, 5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement