repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81b9a10
)
test: improve isArraySorted() test
author
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 27 Jul 2023 11:56:14 +0000
(13:56 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Thu, 27 Jul 2023 11:56:14 +0000
(13:56 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/Utils.test.ts
patch
|
blob
|
blame
|
history
diff --git
a/test/utils/Utils.test.ts
b/test/utils/Utils.test.ts
index b75197c22782d42c7b3abda0e9e9a7df74560b81..96fd18b42096a485871c34568c3e8cbce791f4bf 100644
(file)
--- a/
test/utils/Utils.test.ts
+++ b/
test/utils/Utils.test.ts
@@
-413,5
+413,6
@@
describe('Utils test suite', () => {
).toBe(true);
expect(isArraySorted<number>([1, 2, 3, 4, 5], (a, b) => a - b)).toBe(true);
expect(isArraySorted<number>([1, 2, 3, 5, 4], (a, b) => a - b)).toBe(false);
+ expect(isArraySorted<number>([2, 1, 3, 4, 5], (a, b) => a - b)).toBe(false);
});
});