Add test for string-utils/isEscaped.ts
ADD
packages/@romejs/string-utils/isEscaped.test.ts
+import {isEscaped} from "./isEscaped";
+import {ob1Coerce0} from "@romejs/ob1";
+import {test} from "rome";
+
+test(
+ "isEscaped",
+ (t) => {
+ t.false(isEscaped(ob1Coerce0(0), "\\"));
+
+ t.false(isEscaped(ob1Coerce0(4), "test\\nrome"));
+
+ t.true(isEscaped(ob1Coerce0(5), "test\\nrome"));
+
+ t.false(isEscaped(ob1Coerce0(6), "test\\nrome"));
+
+ t.false(isEscaped(ob1Coerce0(4), ""));
+
+ t.true(isEscaped(ob1Coerce0(1), "\\\\"));
+
+ t.false(isEscaped(ob1Coerce0(0), "\\\\"));
+ },
+);

Add test for string-utils/isEscaped.ts (#512)