Skip to content

Commit d35e085

Browse files
committed
test: add unit test for parsing editor version 6000.0.26f1
This commit introduces a new test case to validate the parsing of the editor version format 6000.x.y.zfn, ensuring that the parser correctly extracts the major, minor, patch, flag, and build components. Refs #418 #423
1 parent bef0e8e commit d35e085

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/unit/domain/editor-version.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ describe("editor-version", () => {
7070
it("should not parse invalid version", () => {
7171
expect(tryParseEditorVersion("2019") === null).toBeTruthy();
7272
});
73+
it("should parse 6000.x.y.zfn", () => {
74+
const version = tryParseEditorVersion("6000.0.26f1");
75+
assert(version !== null);
76+
expect(version).toEqual({
77+
major: 6000,
78+
minor: 0,
79+
patch: 26,
80+
flag: "f",
81+
build: 1,
82+
});
83+
});
7384
});
7485

7586
describe("compareEditorVersion", () => {

0 commit comments

Comments
 (0)