mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibJS: Add String.prototype.toLowerCase()
This commit is contained in:
parent
220ecde626
commit
cb18b2c74d
3 changed files with 33 additions and 0 deletions
11
Libraries/LibJS/Tests/String.prototype.toLowerCase.js
Normal file
11
Libraries/LibJS/Tests/String.prototype.toLowerCase.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
try {
|
||||
assert("foo".toLowerCase() === "foo");
|
||||
assert("Foo".toLowerCase() === "foo");
|
||||
assert("FOO".toLowerCase() === "foo");
|
||||
|
||||
assert(('b' + 'a' + + 'a' + 'a').toLowerCase() === "banana");
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue