Sfoglia il codice sorgente

be more optimistic about version 63

Seth Brenith 7 anni fa
parent
commit
26a6e123a2

+ 2 - 2
test/Intl/NumberFormat.js

@@ -143,7 +143,7 @@ const tests = [
             assert.areEqual("$1.50", formatCurrency({ currencyDisplay: "symbol" }, 1.504), "Currency display: symbol");
             assert.areEqual("$1.51", formatCurrency({ currencyDisplay: "symbol" }, 1.505), "Currency display: symbol");
             // ICU has a proper "name" currency display, while WinGlob falls back to "code"
-            if (WScript.Platform.ICU_VERSION >= 62) {
+            if (WScript.Platform.ICU_VERSION === 62) {
                 // In ICU 62, there is a mismatch between "1.00 US dollar" and "1.00 US dollars"
                 suppressFormatEqualityCheck = true;
             }
@@ -224,7 +224,7 @@ const tests = [
                 { type: "group", value: "," },
                 { type: "integer", value: "000" }
             ]);
-            if (WScript.Platform.ICU_VERSION < 62) {
+            if (WScript.Platform.ICU_VERSION !== 62) {
                 assertParts("en-US", undefined, NaN, [{ type: "nan", value: "NaN" }]);
             }
             assertParts("en-US", undefined, Infinity, [{ type: "infinity", value: "∞" }]);

+ 1 - 1
test/Strings/unicode_toUpperCase_toLowerCase.js

@@ -268,7 +268,7 @@ var tests = [
             assert.areEqual("\u1F86", "\u1F86".toLowerCase(), "Expecting Greek lower-case alpha with psili and perispomeni and ypogegrammeni");
             assert.areEqual("\u1F87", "\u1F87".toLowerCase(), "Expecting Greek lower-case alpha with dasia and perispomeni and ypogegrammeni");
 
-            if (WScript.Platform.INTL_LIBRARY !== "icu" || WScript.Platform.ICU_VERSION < 62) {
+            if (WScript.Platform.INTL_LIBRARY !== "icu" || WScript.Platform.ICU_VERSION !== 62) {
                 // ICU 62 returns nonsensical answers for a lot of these
                 assert.areEqual("\u1F80", "\u1F88".toLowerCase(), "Expecting Greek upper-case alpha with psili and prosgegrammeni");
                 assert.areEqual("\u1F81", "\u1F89".toLowerCase(), "Expecting Greek upper-case alpha with dasia and prosgegrammeni");