Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support minor features for Test262 tests #209

Merged
merged 3 commits into from
Feb 10, 2024
Merged

Support minor features for Test262 tests #209

merged 3 commits into from
Feb 10, 2024

Conversation

taxor03
Copy link
Contributor

@taxor03 taxor03 commented Feb 8, 2024

This PR includes:

  • Add Array.prototype.includes to supported feature
  • Add exponentiation to supported feature

@jhnaldo jhnaldo marked this pull request as ready for review February 9, 2024 22:41
@jhnaldo jhnaldo changed the title Support minor features Support minor features for Test262 tests Feb 9, 2024
@jhnaldo jhnaldo added the test Adds tests label Feb 9, 2024
@jhnaldo
Copy link
Contributor

jhnaldo commented Feb 10, 2024

I implemented two more functionalities:

  • The -test262-test:features option to test only the specific language features of Test262 tests.
  • The StrListOption for argument parsing.
    With these extensions, we can perform Test262 tests only related to the language features Array.prototype.includes and exponentiation as follows:
esmeta test262-test -test262-test:features=Array.prototype.includes,exponentiation

The following is the result:

- time: 18,866 ms [00:18]
- total: 165
  - not-supported (N): 71
    - internationalisation: 25
    - feature: 20
      - change-array-by-copy: 7
      - Temporal: 4
      - resizable-arraybuffer: 3
      - TypedArray: 2
      - Atomics: 1
      - RegExp: 1
      - ShadowRealm: 1
      - ArrayBuffer: 1
    - negative: 14
    - metalanguage: 12
      - If _exponent_ is an odd integral Number, return *-0*<sub>𝔽</sub>. Otherwise, return *+0*<sub>𝔽</sub>.: 6
      - If _exponent_ is an odd integral Number, return *-∞*<sub>𝔽</sub>. Otherwise, return *+∞*<sub>𝔽</sub>.: 5
      - Replace _pe_ in _container_ with _combined_.: 1
  - pass (P): 94
- pass-rate: P/P = 94/94 (100.00%)

@jhnaldo jhnaldo merged commit 08214cc into dev Feb 10, 2024
6 checks passed
@jhnaldo jhnaldo deleted the dev-support-features branch February 10, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Adds tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants