Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/js/node/process/process.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ it("ICU version does not regress", () => {
if (!min) {
throw new Error(`Unknown platform/arch: ${process.platform}-${process.arch}`);
}
expect(Bun.semver.order(process.versions.icu, min)).toBeGreaterThanOrEqual(0);
// As many parts as the floor has: macOS may report four, and Bun.semver.order reads a missing part as the highest.
const version = process.versions.icu.split(".").slice(0, 2).join(".");
expect(Bun.semver.order(version, min)).toBeGreaterThanOrEqual(0);
});

it("process.versions.icu and process.versions.unicode describe the ICU the process runs with", () => {
Expand Down
Loading