MCPcopy Create free account
hub / github.com/plotly/plotly.js / assertAscending

Function assertAscending

test/jasmine/tests/lib_test.js:2927–2937  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

2925 }
2926
2927 function assertAscending(array) {
2928 for (var i = 1; i < array.length; i++) {
2929 if (array[i] < array[i - 1]) {
2930 // we already know this expect will fail,
2931 // just want to format the message nicely and then
2932 // quit so we don't get a million messages
2933 expect(array[i]).not.toBeLessThan(array[i - 1]);
2934 break;
2935 }
2936 }
2937 }
2938
2939 function assertDescending(array) {
2940 for (var i = 1; i < array.length; i++) {

Callers 2

ascendingFunction · 0.85
lib_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…