Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathiasbynens/unicode-property-escapes-tests
Tests for RegExp Unicode property escapes
https://github.com/mathiasbynens/unicode-property-escapes-tests
ecmascript test262 unicode unicode-property-escapes
Last synced: 18 days ago
JSON representation
Tests for RegExp Unicode property escapes
- Host: GitHub
- URL: https://github.com/mathiasbynens/unicode-property-escapes-tests
- Owner: mathiasbynens
- License: mit
- Created: 2017-04-11T15:27:05.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T11:23:26.000Z (about 2 months ago)
- Last Synced: 2024-10-05T07:53:25.549Z (about 1 month ago)
- Topics: ecmascript, test262, unicode, unicode-property-escapes
- Language: JavaScript
- Homepage: https://github.com/tc39/test262/tree/main/test/built-ins/RegExp/property-escapes
- Size: 1.67 MB
- Stars: 8
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT.txt
Awesome Lists containing this project
README
# Tests for RegExp Unicode property escapes
This repository hosts a script that generates tests for [Unicode property escapes in ECMAScript regular expressions](https://github.com/tc39/proposal-regexp-unicode-property-escapes), including [property escapes for properties of strings](https://github.com/tc39/proposal-regexp-v-flag).
[The plan](https://github.com/tc39/test262/issues/950) is to update the script every time the Unicode Standard is updated (i.e. yearly) and to upstream its output to [Test262](https://github.com/tc39/test262).
## Generating the tests
Clone the repository, and then run:
```sh
npm install
npm run build
```The `output` directory holds the generated test files, ready to be upstreamed to [Test262’s `test/built-ins/RegExp/` directory](https://github.com/tc39/test262/tree/main/test/built-ins/RegExp).
To run the tests in V8 using [`test262-harness`](https://github.com/bterlson/test262-harness):
```sh
test262-harness --test262Dir="$HOME/projects/test262" --hostPath="$HOME/.jsvu/v8" --hostType=d8 --hostArgs='--harmony-regexp-property' $(find output -name '*.js') --threads=4
```This assumes you have [the Test262 repository](https://github.com/tc39/test262) checked out at `~/projects/test262`, and a native V8/`d8` build at [`~/.jsvu/v8`](https://github.com/GoogleChromeLabs/jsvu).
## Author
| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [Mathias Bynens](https://mathiasbynens.be/) |## License
The code in this repository is available under the [MIT](https://mths.be/mit) license. (The generated tests have their own license.)