(a: string, b: string, c: number)
| 247 | |
| 248 | describe.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); |
no test coverage detected