Debian Codegraph @

packages/babel-plugin-proposal-json-strings/test/fixtures/json-strings/string-line-separator/output.js

raw
1 expect("\u2028".length).toBe(1);
2 expect("\u2028").toBe("\u2028");
3 expect("before\u2028after".length).toBe(12);
4 expect("before\u2028after").toBe("before\u2028after");
5 // ^ That's a U+2028 LINE SEPARATOR UTF-16 char (between 'before' and 'after')
6
7 expect("\u2028".length).toBe(1);
8 expect("\u2028").toBe("\u2028");
9 // ^ That's a U+2028 LINE SEPARATOR UTF-16 char
10
11 expect("\
".length).toBe(0);
12 expect("\
").toBe("");
13 // ^ That's a U+2028 LINE SEPARATOR UTF-16 char
14
15 expect("\\\u2028".length).toBe(2);
16 expect("\\\u2028").toBe("\\\u2028");
17 // ^ That's a U+2028 LINE SEPARATOR UTF-16 char
18
19 expect("\\\
".length).toBe(1);
20 expect("\\\
").toBe("\\");
21 // ^ That's a U+2028 LINE SEPARATOR UTF-16 char
22
23 expect("\\\\\u2028".length).toBe(3);
24 expect("\\\\\u2028").toBe("\\\\\u2028");
25 // ^ That's a U+2028 LINE SEPARATOR UTF-16 char