mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-11 22:48:01 -05:00
22 lines
503 B
TypeScript
22 lines
503 B
TypeScript
//! test_output([[true,true,true,true,true,true],[false,false,false,false]])
|
|
|
|
export default function () {
|
|
const positive = [
|
|
"foobar".includes("foo"),
|
|
"foobar".includes("bar"),
|
|
"foobar".includes("oob"),
|
|
"foobar".includes(""),
|
|
"foobar".includes("foobar"),
|
|
"foobar".includes("bar", 1),
|
|
];
|
|
|
|
const negative = [
|
|
"foobar".includes("baz"),
|
|
"foobar".includes("qux"),
|
|
"foobar".includes("oob", 4),
|
|
"foobar".includes("foo", 1),
|
|
];
|
|
|
|
return [positive, negative];
|
|
}
|