mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update testloader.js, test-misc.json
This commit is contained in:
parent
51ef1508bd
commit
2fb4b62b8d
|
@ -68,6 +68,11 @@
|
|||
"id": "sharedmemory_listener",
|
||||
"description": "Read a text from the (named) shared memory, Repeatly",
|
||||
"tags": ["Windows System", "IPC(Inter-Process Communication)"]
|
||||
},
|
||||
{
|
||||
"id": "string_split",
|
||||
"description": "String.split test",
|
||||
"tags": ["Assertion"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -917,6 +917,23 @@ var test_implements = {
|
|||
sleep(100);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"string_split": function() {
|
||||
var a = "monkey:red:apple:delicious:banana:long:train:fast:airplane:high:everest:sharp:seringue:painful";
|
||||
var b = a.split(':').join(':');
|
||||
var c = "a=1=b=2=c=3";
|
||||
var d = c.split('=').join('=');
|
||||
|
||||
if (a == b && c == d) {
|
||||
console.log("PASS");
|
||||
} else {
|
||||
console.log("FAILED");
|
||||
console.log(a);
|
||||
console.log(b);
|
||||
console.log(c);
|
||||
console.log(d);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user