MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / twoWayTest

Function twoWayTest

src/pkg/utils/utils.test.ts:249–249  ·  view source on GitHub ↗
(a: string, b: string, c: number)

Source from the content-addressed store, hash-verified

247
248describe.concurrent("versionCompare", () => {
249 const twoWayTest = (a: string, b: string, c: number) => versionCompare(a, b) === c && versionCompare(b, a) === -c;
250 it.concurrent("test", () => {
251 // 整数版本号
252 expect(twoWayTest("0", "1", -1)).toBe(true);

Callers 1

utils.test.tsFile · 0.85

Calls 1

versionCompareFunction · 0.90

Tested by

no test coverage detected