mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
1857 changed files with 266 additions and 274 deletions
8
Userland/Libraries/LibJS/Tests/builtins/RegExp/RegExp.js
Normal file
8
Userland/Libraries/LibJS/Tests/builtins/RegExp/RegExp.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
test("basic functionality", () => {
|
||||
expect(RegExp().toString()).toBe("/(?:)/");
|
||||
expect(RegExp(undefined).toString()).toBe("/(?:)/");
|
||||
expect(RegExp("foo").toString()).toBe("/foo/");
|
||||
expect(RegExp("foo", undefined).toString()).toBe("/foo/");
|
||||
expect(RegExp("foo", "g").toString()).toBe("/foo/g");
|
||||
expect(RegExp(undefined, "g").toString()).toBe("/(?:)/g");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue