Skip to content

package:intl4x conformance testing web #1000

@mosuem

Description

@mosuem

For intl4x web

Collation: Pass: 431321, Fail: 359, Errors: 0, Unsupported: 0

  • Locale parse error on root. Possibly to be solved by implementing the locale canonicalizer. Example:
 {
        "label": "00126",
        "error_message": "Invalid argument(s): Incorrect locale information provided",
        "stack": "RangeError: Incorrect locale information provided\n    at new Locale (<anonymous>)\n    at Object._callConstructorUnchecked1 (/home/mosum/projects/conformance/executors/dart/out/collatorDart.js:4252:21)\n    at Object.parseLocale (/home/mosum/projects/conformance/executors/dart/out/collatorDart.js:4410:30)\n    at Object.Locale_parse (/home/mosum/projects/conformance/executors/dart/out/collatorDart.js:4450:16)\n    at Object.testCollation (/home/mosum/projects/conformance/executors/dart/out/collatorDart.js:4301:28)\n    at Object.testCollation (/home/mosum/projects/conformance/executors/dart/out/collatorDart.js:7386:16)\n    at Object.testCollation (/home/mosum/projects/conformance/executors/dart/out/collator.js:8:33)\n    at Interface.<anonymous> (/home/mosum/projects/conformance/executors/dart/out/executor.js:136:33)\n    at Interface.emit (node:events:513:28)\n    at [_onLine] [as _onLine] (node:internal/readline/interface:416:12)",
        "error": "Collator compare failed",
        "s1": "b",
        "s2": "B",
        "input_data": {
            "compare_type": "<3",
            "s1": "b",
            "s2": "B",
            "source_file": "collationtest.txt",
            "line": 287,
            "label": "00126",
            "locale": "root",
            "test_description": "some simple string comparisons",
            "hexhash": "e1045cdad008908e33d3b3305c7240d8a0493bbb"
        },
        "expected": true
    },
  • Some actual failures, to be investigated. Example:
    {
        "label": "00059",
        "result": false,
        "compare": 1,
        "input_data": {
            "compare_type": "<1",
            "s1": "\u24bb",
            "s2": "a\u0327\u0323\u030a",
            "source_file": "collationtest.txt",
            "line": 176,
            "compare_comment": " match despite missing prefix",
            "label": "00059",
            "test_description": "simple contractions",
            "rules": "...",
            "hexhash": "6872e65fa05daf08c1b6ddf4b57f4bed05a43e6a"
        },
        "expected": true
    },

Datetime format: Pass: 0, Fail: 12935, Errors: 0, Unsupported: 0

  • So far all failures, needs parsing of a JSON options object into date time options. Example:
  {
        "label": "00018",
        "result": "5/29/1984",
        "actual_options": "Instance of 'DateTimeFormatOptions'",
        "input_data": {
            "label": "00018",
            "locale": "en-US",
            "input_string": "1984-05-29T14:53:00Z",
            "options": {
                "timeZone": "America/Los_Angeles",
                "dateStyle": "short",
                "timeStyle": "short",
                "calendar": "gregory",
                "dateTimeFormatType": "standard"
            },
            "tz_offset_secs": -25200.0,
            "original_input": "1984-05-29T07:53-07:00[America/Los_Angeles]",
            "hexhash": "67cc1f4e4a987667a905662eaaa3f6de996bd0c5"
        },
        "expected": "5/29/84, 7:53\u202fAM"
    },

Display names: Pass: 1101, Fail: 859, Errors: 0, Unsupported: 0

  • Some failures seem to have different data, Example:
{
        "label": "1004",
        "result": "olandese (latino, Belgio)",
        "input_data": {
            "label": "1004",
            "language_label": "nl-Latn-BE",
            "locale_label": "it",
            "languageDisplay": "dialect",
            "hexhash": "e5fea1815ce1c525cb30ec6aadc9902345c01296"
        },
        "expected": "fiammingo (latino)"
    },
  • Some invalid_argument, example:
    {
        "label": "0142",
        "error_type": "unsupported",
        "error_detail": "Invalid argument(s): invalid_argument",
        "actual_options": {
            "style": "long",
            "languageDisplay": "standard",
            "fallback": "code"
        },
        "error_retry": false,
        "input_data": {
            "label": "0142",
            "language_label": "en-u-kr-digit",
            "locale_label": "en",
            "languageDisplay": "standard",
            "hexhash": "94e0a550252d2ef2aa287e382e098c77f9c3ea96"
        },
        "expected": "English (Digits)"
    },

List format: Pass: 363, Fail: 0, Errors: 0, Unsupported: 0

  • Yay!

Number format: Pass: 2952, Fail: 82, Errors: 0, Unsupported: 4302

  • Some very close calls. Example, see the last digit:
{
        "label": "2062",
        "result": "\u20ac91,827.365",
        "actual_options": {
            "style": "currency",
            "currency": "EUR",
            "localeMatcher": "best fit",
            "signDisplay": "auto",
            "notation": "standard",
            "useGrouping": "auto",
            "numberingSystem": null,
            "roundingMode": "halfExpand",
            "trailingZeroDisplay": "auto",
            "minimumIntegerDigits": 1,
            "digits": {
                "fractionDigits": "(3, 3)",
                "significantDigits": "(null, null)",
                "roundingPriority": null,
                "roundingIncrement": null
            }
        },
        "input_data": {
            "label": "2062",
            "locale": "es-MX",
            "skeleton": "currency/EUR unit-width-narrow .000",
            "input": "91827.3645",
            "options": {
                "style": "currency",
                "currencyDisplay": "narrowSymbol",
                "currency": "EUR",
                "unitDisplay": "narrow",
                "maximumFractionDigits": 3,
                "minimumFractionDigits": 3
            },
            "hexhash": "a4a62028e2bb9bdfb9117083964ad2316785212f"
        },
        "expected": "\u20ac91,827.364"
    },
  • Some custom skeletons are unsupported, example:
    {
        "label": "0055",
        "unsupported": "unsupported_options",
        "error_type": "unsupported",
        "error_detail": {
            "unsupported_options": [
                "conformanceExponent:+ee",
                "conformanceSign:always",
                "scientific/+ee/sign-always"
            ]
        },
        "input_data": {
            "label": "0055",
            "locale": "es-MX",
            "skeleton": "scientific/+ee/sign-always percent unit-width-narrow",
            "input": "91827.3645",
            "options": {
                "notation": "scientific",
                "conformanceExponent": "+ee",
                "conformanceSign": "always",
                "style": "unit",
                "unit": "percent",
                "unitDisplay": "narrow",
                "currencyDisplay": "narrowSymbol",
                "maximumFractionDigits": 6
            },
            "hexhash": "accbc4400db2197b062bf2c168a3122f910c1950"
        }
    },

Plural rules: Pass: 5931, Fail: 0, Errors: 0, Unsupported: 216

  • unsupported compact number on all unsupported, example:
    {
        "label": "4051",
        "error": "unsupported",
        "unsupported": "unsupported compact number",
        "error_detail": {
            "unsupported sample": "6c6"
        },
        "input_data": {
            "locale": "pt",
            "label": "4051",
            "type": "cardinal",
            "plural_type": "cardinal",
            "sample": "6c6",
            "hexhash": "2c2c03332ce7967604b50fd0f2fd5ebffab092cc"
        }
    },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions