MCPcopy Create free account
hub / github.com/nodejs/node / shouldBeInThisOrder

Function shouldBeInThisOrder

deps/v8/test/webkit/string-sort.js:26–30  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

24description("This page tests sorting of string values");
25
26function shouldBeInThisOrder(a)
27{
28 shouldBeTrue('"' + a[0] + '"' + " < " + '"' + a[1] + '"');
29 shouldBe('[' + '"' + a[0] + '"' + ',' + '"' + a[1] + '"' + '].sort().toString()', '"' + a + '"');
30}
31
32shouldBeInThisOrder(["12", "123"]);
33shouldBeInThisOrder(["123", "13"]);

Callers 1

string-sort.jsFile · 0.85

Calls 2

shouldBeTrueFunction · 0.50
shouldBeFunction · 0.50

Tested by

no test coverage detected