Skip to content

Commit 87f1a8c

Browse files
committed
Add version check test for linux
1 parent 19756d5 commit 87f1a8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

__tests__/get-version.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@ Target: x86_64-apple-macosx11.0`
2222
);
2323
expect(version).toBe("5.5");
2424
});
25+
26+
it("identifies version from swift version on linux", async () => {
27+
const version = versionFromString(
28+
"Swift version 5.5.1 (swift-5.5.1-RELEASE)"
29+
);
30+
expect(version).toBe("5.5.1");
31+
});
2532
});

0 commit comments

Comments
 (0)