Lines Matching refs:verifyFormat
48 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJS
56 static void verifyFormat( in verifyFormat() function in clang::format::FormatTestJS
67 verifyFormat("/* aaaaaaaaaaaaa */ aaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" in TEST_F()
233 verifyFormat("a == = b;"); in TEST_F()
234 verifyFormat("a != = b;"); in TEST_F()
236 verifyFormat("a === b;"); in TEST_F()
237 verifyFormat("aaaaaaa ===\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
238 verifyFormat("a !== b;"); in TEST_F()
239 verifyFormat("aaaaaaa !==\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
240 verifyFormat("if (a + b + c +\n" in TEST_F()
246 verifyFormat("a >> >= b;"); in TEST_F()
248 verifyFormat("a >>> b;"); in TEST_F()
249 verifyFormat("aaaaaaa >>>\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
250 verifyFormat("a >>>= b;"); in TEST_F()
251 verifyFormat("aaaaaaa >>>=\n b;", getGoogleJSStyleWithColumns(10)); in TEST_F()
252 verifyFormat("if (a + b + c +\n" in TEST_F()
257 verifyFormat("var x = aaaaaaaaaa ?\n" in TEST_F()
262 verifyFormat("var b = a.map((x) => x + 1);"); in TEST_F()
263 verifyFormat("return ('aaa') in bbbb;"); in TEST_F()
264 verifyFormat("var x = aaaaaaaaaaaaaaaaaaaaaaaaa() in\n" in TEST_F()
268 verifyFormat("var x = aaaaaaaaaaaaaaaaaaaaaaaaa() in\n" in TEST_F()
272 verifyFormat("var x = aaaaaaaaaaaaaaaaaaaaaaaaa()\n" in TEST_F()
277 verifyFormat("someFunction(...a);"); in TEST_F()
278 verifyFormat("var x = [1, ...a, 2];"); in TEST_F()
281 verifyFormat("- -1;", " - -1;"); in TEST_F()
282 verifyFormat("-- -1;", " -- -1;"); in TEST_F()
283 verifyFormat("+ +1;", " + +1;"); in TEST_F()
284 verifyFormat("++ +1;", " ++ +1;"); in TEST_F()
288 verifyFormat("e && e.SomeFunction();"); in TEST_F()
292 verifyFormat("not.and.or.not_eq = 1;"); in TEST_F()
298 verifyFormat("x.class.struct = 1;"); in TEST_F()
299 verifyFormat("x.case = 1;"); in TEST_F()
300 verifyFormat("x.interface = 1;"); in TEST_F()
301 verifyFormat("x.for = 1;"); in TEST_F()
302 verifyFormat("x.of();"); in TEST_F()
303 verifyFormat("of(null);"); in TEST_F()
304 verifyFormat("return of(null);"); in TEST_F()
305 verifyFormat("import {of} from 'x';"); in TEST_F()
306 verifyFormat("x.in();"); in TEST_F()
307 verifyFormat("x.let();"); in TEST_F()
308 verifyFormat("x.var();"); in TEST_F()
309 verifyFormat("x.for();"); in TEST_F()
310 verifyFormat("x.as();"); in TEST_F()
311 verifyFormat("x.instanceof();"); in TEST_F()
312 verifyFormat("x.switch();"); in TEST_F()
313 verifyFormat("x.case();"); in TEST_F()
314 verifyFormat("x.delete();"); in TEST_F()
315 verifyFormat("x.throw();"); in TEST_F()
316 verifyFormat("x.throws();"); in TEST_F()
317 verifyFormat("x.if();"); in TEST_F()
318 verifyFormat("x = {\n" in TEST_F()
323 verifyFormat("var struct = 2;"); in TEST_F()
324 verifyFormat("var union = 2;"); in TEST_F()
325 verifyFormat("var interface = 2;"); in TEST_F()
326 verifyFormat("var requires = {};"); in TEST_F()
327 verifyFormat("interface = 2;"); in TEST_F()
328 verifyFormat("x = interface instanceof y;"); in TEST_F()
329 verifyFormat("interface Test {\n" in TEST_F()
335 verifyFormat("const Axis = {\n" in TEST_F()
340 verifyFormat("export class Foo extends Bar {\n" in TEST_F()
350 verifyFormat("class X {\n" in TEST_F()
361 verifyFormat("class KeywordNamedMethods {\n" in TEST_F()
381 verifyFormat("throw (x + y);\n" in TEST_F()
390 verifyFormat("var [a, b, c] = [1, 2, 3];"); in TEST_F()
391 verifyFormat("const [a, b, c] = [1, 2, 3];"); in TEST_F()
392 verifyFormat("let [a, b, c] = [1, 2, 3];"); in TEST_F()
393 verifyFormat("var {a, b} = {a: 1, b: 2};"); in TEST_F()
394 verifyFormat("let {a, b} = {a: 1, b: 2};"); in TEST_F()
398 verifyFormat("var x = {\n" in TEST_F()
403 verifyFormat("return {\n" in TEST_F()
408 verifyFormat("return {\n" in TEST_F()
414 verifyFormat("return {\n" in TEST_F()
423 verifyFormat("var stuff = {\n" in TEST_F()
431 verifyFormat("return {\n" in TEST_F()
436 verifyFormat("var obj = {\n" in TEST_F()
442 verifyFormat("var obj = {a: 123};"); in TEST_F()
444 verifyFormat("X = {\n a: 123\n};"); in TEST_F()
445 verifyFormat("X.Y = {\n a: 123\n};"); in TEST_F()
447 verifyFormat("function x() {\n" in TEST_F()
450 verifyFormat("x = foo && {a: 123};"); in TEST_F()
453 verifyFormat("var x = {\n" in TEST_F()
459 verifyFormat("var x = {y: (a) => a};"); in TEST_F()
462 verifyFormat("var x = {\n" in TEST_F()
467 verifyFormat("var x = {\n" in TEST_F()
474 verifyFormat("var x = {[a]: 1, b: 2, [c]: 3};"); in TEST_F()
475 verifyFormat("var x = {\n" in TEST_F()
482 verifyFormat("f({a}, () => {\n" in TEST_F()
488 verifyFormat("var x = {\n" in TEST_F()
495 verifyFormat("var x = {\n" in TEST_F()
500 verifyFormat("return {\n" in TEST_F()
508 verifyFormat("var o = {\n" in TEST_F()
514 verifyFormat("var o = {\n" in TEST_F()
520 verifyFormat("var o = {\n" in TEST_F()
526 verifyFormat("var o = {\n" in TEST_F()
538 verifyFormat("class X {\n" in TEST_F()
546 verifyFormat("class X {\n" in TEST_F()
556 verifyFormat("var arr = [1, 2, 3];"); in TEST_F()
557 verifyFormat("f({a: 1, b: 2, c: 3});"); in TEST_F()
559 verifyFormat("var object_literal_with_long_name = {\n" in TEST_F()
564 verifyFormat("f({a: 1, b: 2, c: 3});", in TEST_F()
566 verifyFormat("f({'a': [{}]});"); in TEST_F()
570 verifyFormat("this.function('', true);"); in TEST_F()
574 verifyFormat("goog.scope(function() {\n" in TEST_F()
578 verifyFormat("goog.scope(function() {\n" in TEST_F()
587 verifyFormat("(function() {\n" in TEST_F()
591 verifyFormat("(function() {\n" in TEST_F()
595 verifyFormat("(function() {\n" in TEST_F()
599 verifyFormat("(function() {\n" in TEST_F()
605 verifyFormat("goog.module('this.is.really.absurdly.long');", in TEST_F()
607 verifyFormat("goog.require('this.is.really.absurdly.long');", in TEST_F()
609 verifyFormat("goog.provide('this.is.really.absurdly.long');", in TEST_F()
611 verifyFormat("var long = goog.require('this.is.really.absurdly.long');", in TEST_F()
613 verifyFormat("const X = goog.requireType('this.is.really.absurdly.long');", in TEST_F()
615 verifyFormat("goog.forwardDeclare('this.is.really.absurdly.long');", in TEST_F()
619 verifyFormat( in TEST_F()
622 verifyFormat("function a() {\n" in TEST_F()
631 verifyFormat("namespace Foo {\n" in TEST_F()
634 verifyFormat("declare namespace Foo {\n" in TEST_F()
640 verifyFormat("declare namespace foobarbaz {\n" in TEST_F()
643 verifyFormat("declare module foobarbaz {\n" in TEST_F()
646 verifyFormat("namespace foobarbaz {\n" in TEST_F()
649 verifyFormat("module foobarbaz {\n" in TEST_F()
656 verifyFormat("declare class\n" in TEST_F()
659 verifyFormat("declare function\n" in TEST_F()
662 verifyFormat("declare function foo();\n" in TEST_F()
664 verifyFormat("declare function foo(): string;\n" in TEST_F()
666 verifyFormat("declare function foo(): {x: number};\n" in TEST_F()
668 verifyFormat("declare class X {}\n" in TEST_F()
670 verifyFormat("declare interface Y {}\n" in TEST_F()
672 verifyFormat("declare enum X {\n" in TEST_F()
675 verifyFormat("declare let\n" in TEST_F()
681 verifyFormat("function outer1(a, b) {\n" in TEST_F()
693 verifyFormat("function f() {}"); in TEST_F()
694 verifyFormat("function aFunction() {}\n" in TEST_F()
698 verifyFormat("function aFunction() {}\n" in TEST_F()
714 verifyFormat("class A {\n" in TEST_F()
774 verifyFormat("function* f() {\n" in TEST_F()
781 verifyFormat("function*\n" in TEST_F()
785 verifyFormat("export function* f() {\n" in TEST_F()
788 verifyFormat("class X {\n" in TEST_F()
793 verifyFormat("var x = {\n" in TEST_F()
801 verifyFormat("async function f() {\n" in TEST_F()
805 verifyFormat("async function f() {\n" in TEST_F()
821 verifyFormat("async function\n" in TEST_F()
827 verifyFormat("class C {\n" in TEST_F()
835 verifyFormat("async function* f() {\n" in TEST_F()
838 verifyFormat("export async function f() {\n" in TEST_F()
841 verifyFormat("let x = async () => f();"); in TEST_F()
842 verifyFormat("let x = async function() {\n" in TEST_F()
845 verifyFormat("let x = async();"); in TEST_F()
846 verifyFormat("class X {\n" in TEST_F()
851 verifyFormat("function initialize() {\n" in TEST_F()
855 verifyFormat("for await (const x of y) {\n" in TEST_F()
858 verifyFormat("function asyncLoop() {\n" in TEST_F()
866 verifyFormat( in TEST_F()
872 verifyFormat( in TEST_F()
878 verifyFormat("class C extends P {\n" in TEST_F()
886 verifyFormat("function trailingComma(\n" in TEST_F()
896 verifyFormat("trailingComma(\n" in TEST_F()
902 verifyFormat("trailingComma(\n" in TEST_F()
910 verifyFormat("var aaaaa: List<SomeThing> =\n" in TEST_F()
912 verifyFormat("return [\n" in TEST_F()
916 verifyFormat("return [\n" in TEST_F()
921 verifyFormat("var someVariable = SomeFunction([\n" in TEST_F()
925 verifyFormat("var someVariable = SomeFunction([\n" in TEST_F()
929 verifyFormat("var someVariable = SomeFunction(aaaa, [\n" in TEST_F()
933 verifyFormat("var someVariable = SomeFunction(\n" in TEST_F()
940 verifyFormat("var aaaa = aaaaa || // wrap\n" in TEST_F()
943 verifyFormat("someFunction([], {a: a});"); in TEST_F()
945 verifyFormat("var string = [\n" in TEST_F()
952 verifyFormat("var array = [\n" in TEST_F()
956 verifyFormat("var array = someFunction([\n" in TEST_F()
966 verifyFormat("const x = [\n" in TEST_F()
976 verifyFormat("const x = [\n" in TEST_F()
981 verifyFormat("const x = [\n" in TEST_F()
986 verifyFormat("const x = {\n" in TEST_F()
990 verifyFormat("const x = {\n" in TEST_F()
995 verifyFormat("let x: {\n" in TEST_F()
1004 verifyFormat("doFoo(function() {});"); in TEST_F()
1005 verifyFormat("doFoo(function() { return 1; });", Style); in TEST_F()
1006 verifyFormat("var func = function() {\n" in TEST_F()
1009 verifyFormat("var func = //\n" in TEST_F()
1013 verifyFormat("return {\n" in TEST_F()
1021 verifyFormat("abc = xyz ? function() {\n" in TEST_F()
1027 verifyFormat("var closure = goog.bind(\n" in TEST_F()
1034 verifyFormat("var closure = goog.bind(function() { // comment\n" in TEST_F()
1038 verifyFormat("return {\n" in TEST_F()
1046 verifyFormat("{\n" in TEST_F()
1051 verifyFormat("someLooooooooongFunction(\n" in TEST_F()
1058 verifyFormat("return {\n" in TEST_F()
1064 verifyFormat("this.someObject.doSomething(aaaaaaaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
1070 verifyFormat("someFunction(goog.bind(function() {\n" in TEST_F()
1078 verifyFormat("SomeFunction(function() {\n" in TEST_F()
1083 verifyFormat("SomeFunction((function() {\n" in TEST_F()
1089 verifyFormat("someFunction(function() {\n" in TEST_F()
1097 verifyFormat("f({a: function() { return 1; }});", Style); in TEST_F()
1099 verifyFormat("f({\n" in TEST_F()
1106 verifyFormat("(aaaaaaaaaaaaaaaaaaaaa.getData as jasmine.Spy)\n" in TEST_F()
1108 verifyFormat("(aaaaaaaaaaaaaaaaaaaaa.getData as jasmine.Spy)\n" in TEST_F()
1110 verifyFormat("(aaaaaaaaaaaaaaaaaaaaa.getData as jasmine.Spy)\n" in TEST_F()
1117 verifyFormat("var func = function() {\n" in TEST_F()
1121 verifyFormat("var func = doSomething(function() { return 1; });", Style); in TEST_F()
1122 verifyFormat("var outer = function() {\n" in TEST_F()
1126 verifyFormat("function outer1(a, b) {\n" in TEST_F()
1132 verifyFormat("var func = function() { return 1; };", Style); in TEST_F()
1133 verifyFormat("var func = doSomething(function() { return 1; });", Style); in TEST_F()
1134 verifyFormat( in TEST_F()
1137 verifyFormat("function outer1(a, b) {\n" in TEST_F()
1143 verifyFormat("var func = function() {\n" in TEST_F()
1147 verifyFormat("var func = doSomething(function() {\n" in TEST_F()
1151 verifyFormat("var outer = function() {\n" in TEST_F()
1157 verifyFormat("function outer1(a, b) {\n" in TEST_F()
1165 verifyFormat("var func = function() {\n" in TEST_F()
1174 verifyFormat("promise.then(\n" in TEST_F()
1184 verifyFormat("promise.then(\n" in TEST_F()
1194 verifyFormat("promise.then(\n" in TEST_F()
1205 verifyFormat("getSomeLongPromise()\n" in TEST_F()
1212 verifyFormat("getSomeLongPromise()\n" in TEST_F()
1222 verifyFormat("getSomeLongPromise()\n" in TEST_F()
1227 verifyFormat("return [aaaaaaaaaaaaaaaaaaaaaa]\n" in TEST_F()
1235 verifyFormat("var x = (a) => {\n" in TEST_F()
1239 verifyFormat("var x = (a) => {\n" in TEST_F()
1245 verifyFormat("var x = (a: type): {some: type} => {\n" in TEST_F()
1249 verifyFormat("var x = (a) => a;"); in TEST_F()
1250 verifyFormat("return () => [];"); in TEST_F()
1251 verifyFormat("var aaaaaaaaaaaaaaaaaaaa = {\n" in TEST_F()
1257 verifyFormat("var a = a.aaaaaaa(\n" in TEST_F()
1260 verifyFormat("var a = a.aaaaaaa(\n" in TEST_F()
1266 verifyFormat("someFunction(() => {\n" in TEST_F()
1272 verifyFormat("const f = (x: string|null): string|null => {\n" in TEST_F()
1281 verifyFormat("const arr = () => { x; };", Style); in TEST_F()
1282 verifyFormat("const arrInlineAll = () => {};", Style); in TEST_F()
1284 verifyFormat("const arr = () => {\n" in TEST_F()
1288 verifyFormat("const arrInlineNone = () => {\n" in TEST_F()
1292 verifyFormat("const arr = () => {\n" in TEST_F()
1296 verifyFormat("const arrInlineEmpty = () => {};", Style); in TEST_F()
1298 verifyFormat("const arr = () => {\n" in TEST_F()
1302 verifyFormat("foo(() => {});", Style); in TEST_F()
1303 verifyFormat("const arrInlineInline = () => {};", Style); in TEST_F()
1307 verifyFormat("function() {\n" in TEST_F()
1313 verifyFormat("for (var i in [2, 3]) {\n" in TEST_F()
1315 verifyFormat("for (var i of [2, 3]) {\n" in TEST_F()
1317 verifyFormat("for (let {a, b} of x) {\n" in TEST_F()
1319 verifyFormat("for (let {a, b} of [x]) {\n" in TEST_F()
1321 verifyFormat("for (let [a, b] of [x]) {\n" in TEST_F()
1323 verifyFormat("for (let {a, b} in x) {\n" in TEST_F()
1331 verifyFormat("return aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1332 verifyFormat("yield aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1333 verifyFormat("return /* hello! */ aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1334 verifyFormat("continue aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1335 verifyFormat("continue /* hello! */ aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1336 verifyFormat("break aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1337 verifyFormat("throw aaaaa;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1338 verifyFormat("aaaaaaaaa++;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1339 verifyFormat("aaaaaaaaa--;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1340 verifyFormat("return [\n" in TEST_F()
1344 verifyFormat("class X {\n" in TEST_F()
1352 verifyFormat("const x = (5 + 9)\n" in TEST_F()
1357 verifyFormat("async function\n" in TEST_F()
1360 verifyFormat("await theReckoning;", getGoogleJSStyleWithColumns(10)); in TEST_F()
1361 verifyFormat("some['a']['b']", getGoogleJSStyleWithColumns(10)); in TEST_F()
1362 verifyFormat("x = (a['a']\n" in TEST_F()
1365 verifyFormat("function f() {\n" in TEST_F()
1377 verifyFormat("Polymer({\n" in TEST_F()
1385 verifyFormat("a\n" in TEST_F()
1389 verifyFormat("a()\n" in TEST_F()
1393 verifyFormat("a[b]\n" in TEST_F()
1397 verifyFormat("1\n" in TEST_F()
1401 verifyFormat("a\n" in TEST_F()
1405 verifyFormat("a\n" in TEST_F()
1409 verifyFormat("a++\n" in TEST_F()
1413 verifyFormat("a\n" in TEST_F()
1417 verifyFormat("a\n" in TEST_F()
1421 verifyFormat("a\n" in TEST_F()
1425 verifyFormat("var a", "var\n" in TEST_F()
1427 verifyFormat("x instanceof String", "x\n" in TEST_F()
1430 verifyFormat("function f(@Foo bar) {}", "function f(@Foo\n" in TEST_F()
1432 verifyFormat("function f(@Foo(Param) bar) {}", "function f(@Foo(Param)\n" in TEST_F()
1434 verifyFormat("a = true\n" in TEST_F()
1438 verifyFormat("a = 's'\n" in TEST_F()
1442 verifyFormat("a = null\n" in TEST_F()
1447 verifyFormat("x = {\n" in TEST_F()
1452 verifyFormat("if (x) {\n" in TEST_F()
1457 verifyFormat("if (x) {\n" in TEST_F()
1465 verifyFormat("import {x} from 'y'\n" in TEST_F()
1470 verifyFormat("export {x} class Y {}", " export {x}\n" in TEST_F()
1472 verifyFormat("if (x) {\n" in TEST_F()
1480 verifyFormat("var x = /** @type {foo} */ (bar);"); in TEST_F()
1484 verifyFormat("try {\n" in TEST_F()
1493 verifyFormat("someObject.catch();"); in TEST_F()
1494 verifyFormat("someObject.new();"); in TEST_F()
1498 verifyFormat("var literal = 'hello ' +\n" in TEST_F()
1504 verifyFormat("var regex = /abc/;"); in TEST_F()
1505 verifyFormat("f(/abc/);"); in TEST_F()
1506 verifyFormat("f(abc, /abc/);"); in TEST_F()
1507 verifyFormat("some_map[/abc/];"); in TEST_F()
1508 verifyFormat("var x = a ? /abc/ : /abc/;"); in TEST_F()
1509 verifyFormat("for (var i = 0; /abc/.test(s[i]); i++) {\n}"); in TEST_F()
1510 verifyFormat("var x = !/abc/.test(y);"); in TEST_F()
1511 verifyFormat("var x = foo()! / 10;"); in TEST_F()
1512 verifyFormat("var x = a && /abc/.test(y);"); in TEST_F()
1513 verifyFormat("var x = a || /abc/.test(y);"); in TEST_F()
1514 verifyFormat("var x = a + /abc/.search(y);"); in TEST_F()
1515 verifyFormat("/abc/.search(y);"); in TEST_F()
1516 verifyFormat("var regexs = {/abc/, /abc/};"); in TEST_F()
1517 verifyFormat("return /abc/;"); in TEST_F()
1520 verifyFormat("var a = a / 2 + b / 3;"); in TEST_F()
1521 verifyFormat("var a = a++ / 2;"); in TEST_F()
1523 verifyFormat("var a = ++/a/;"); in TEST_F()
1527 verifyFormat("if (foo) / bar /.exec(baz);"); in TEST_F()
1531 verifyFormat("var regex = /=/;"); in TEST_F()
1532 verifyFormat("var regex = /a*/;"); in TEST_F()
1533 verifyFormat("var regex = /a+/;"); in TEST_F()
1534 verifyFormat("var regex = /a?/;"); in TEST_F()
1535 verifyFormat("var regex = /.a./;"); in TEST_F()
1536 verifyFormat("var regex = /a\\*/;"); in TEST_F()
1537 verifyFormat("var regex = /^a$/;"); in TEST_F()
1538 verifyFormat("var regex = /\\/a/;"); in TEST_F()
1539 verifyFormat("var regex = /(?:x)/;"); in TEST_F()
1540 verifyFormat("var regex = /x(?=y)/;"); in TEST_F()
1541 verifyFormat("var regex = /x(?!y)/;"); in TEST_F()
1542 verifyFormat("var regex = /x|y/;"); in TEST_F()
1543 verifyFormat("var regex = /a{2}/;"); in TEST_F()
1544 verifyFormat("var regex = /a{1,3}/;"); in TEST_F()
1546 verifyFormat("var regex = /[abc]/;"); in TEST_F()
1547 verifyFormat("var regex = /[^abc]/;"); in TEST_F()
1548 verifyFormat("var regex = /[\\b]/;"); in TEST_F()
1549 verifyFormat("var regex = /[/]/;"); in TEST_F()
1550 verifyFormat("var regex = /[\\/]/;"); in TEST_F()
1551 verifyFormat("var regex = /\\[/;"); in TEST_F()
1552 verifyFormat("var regex = /\\\\[/]/;"); in TEST_F()
1553 verifyFormat("var regex = /}[\"]/;"); in TEST_F()
1554 verifyFormat("var regex = /}[/\"]/;"); in TEST_F()
1555 verifyFormat("var regex = /}[\"/]/;"); in TEST_F()
1557 verifyFormat("var regex = /\\b/;"); in TEST_F()
1558 verifyFormat("var regex = /\\B/;"); in TEST_F()
1559 verifyFormat("var regex = /\\d/;"); in TEST_F()
1560 verifyFormat("var regex = /\\D/;"); in TEST_F()
1561 verifyFormat("var regex = /\\f/;"); in TEST_F()
1562 verifyFormat("var regex = /\\n/;"); in TEST_F()
1563 verifyFormat("var regex = /\\r/;"); in TEST_F()
1564 verifyFormat("var regex = /\\s/;"); in TEST_F()
1565 verifyFormat("var regex = /\\S/;"); in TEST_F()
1566 verifyFormat("var regex = /\\t/;"); in TEST_F()
1567 verifyFormat("var regex = /\\v/;"); in TEST_F()
1568 verifyFormat("var regex = /\\w/;"); in TEST_F()
1569 verifyFormat("var regex = /\\W/;"); in TEST_F()
1570 verifyFormat("var regex = /a(a)\\1/;"); in TEST_F()
1571 verifyFormat("var regex = /\\0/;"); in TEST_F()
1572 verifyFormat("var regex = /\\\\/g;"); in TEST_F()
1573 verifyFormat("var regex = /\\a\\\\/g;"); in TEST_F()
1574 verifyFormat("var regex = /\a\\//g;"); in TEST_F()
1575 verifyFormat("var regex = /a\\//;\n" in TEST_F()
1577 verifyFormat("var regex = /'/g;", "var regex = /'/g ;"); in TEST_F()
1578 verifyFormat("var regex = /'/g; //'", "var regex = /'/g ; //'"); in TEST_F()
1579 verifyFormat("var regex = /\\/*/;\n" in TEST_F()
1583 verifyFormat("var x = /a\\//;", "var x = /a\\// \n;"); in TEST_F()
1584 verifyFormat("var regex = /\"/;", getGoogleJSStyleWithColumns(16)); in TEST_F()
1585 verifyFormat("var regex =\n" in TEST_F()
1588 verifyFormat("var regex = //\n" in TEST_F()
1590 verifyFormat("var regexs = [\n" in TEST_F()
1597 verifyFormat("var regex = /abc/g;"); in TEST_F()
1598 verifyFormat("var regex = /abc/i;"); in TEST_F()
1599 verifyFormat("var regex = /abc/m;"); in TEST_F()
1600 verifyFormat("var regex = /abc/y;"); in TEST_F()
1604 verifyFormat("var regex = /aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/;", in TEST_F()
1606 verifyFormat("var regex =\n" in TEST_F()
1609 verifyFormat("var regex = /\\xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/;", in TEST_F()
1614 verifyFormat("var regex = search.match(/(?:\?|&)times=([^?&]+)/i);"); in TEST_F()
1623 verifyFormat(MpegTS, MpegTS); in TEST_F()
1627 verifyFormat("var x: string;"); in TEST_F()
1628 verifyFormat("var x: {a: string; b: number;} = {};"); in TEST_F()
1629 verifyFormat("function x(): string {\n return 'x';\n}"); in TEST_F()
1630 verifyFormat("function x(): {x: string} {\n return {x: 'x'};\n}"); in TEST_F()
1631 verifyFormat("function x(y: string): string {\n return 'x';\n}"); in TEST_F()
1632 verifyFormat("for (var y: string in x) {\n x();\n}"); in TEST_F()
1633 verifyFormat("for (var y: string of x) {\n x();\n}"); in TEST_F()
1634 verifyFormat("function x(y: {a?: number;} = {}): number {\n" in TEST_F()
1637 verifyFormat("const x: Array<{a: number; b: string;}> = [];"); in TEST_F()
1638 verifyFormat("((a: string, b: number): string => a + b);"); in TEST_F()
1639 verifyFormat("var x: (y: number) => string;"); in TEST_F()
1640 verifyFormat("var x: P<string, (a: number) => string>;"); in TEST_F()
1641 verifyFormat("var x = {\n" in TEST_F()
1646 verifyFormat("var x = {\n" in TEST_F()
1651 verifyFormat("function someFunc(args: string[]):\n" in TEST_F()
1654 verifyFormat( in TEST_F()
1657 verifyFormat("const xIsALongIdent:\n" in TEST_F()
1660 verifyFormat("const x = {\n" in TEST_F()
1666 verifyFormat("let x: A|B = A | B;"); in TEST_F()
1667 verifyFormat("let x: A&B|C = A & B;"); in TEST_F()
1668 verifyFormat("let x: Foo<A|B> = new Foo<A|B>();"); in TEST_F()
1669 verifyFormat("function(x: A|B): C&D {}"); in TEST_F()
1670 verifyFormat("function(x: A|B = A | B): C&D {}"); in TEST_F()
1671 verifyFormat("function x(path: number|string) {}"); in TEST_F()
1672 verifyFormat("function x(): string|number {}"); in TEST_F()
1673 verifyFormat("type Foo = Bar|Baz;"); in TEST_F()
1674 verifyFormat("type Foo = Bar<X>|Baz;"); in TEST_F()
1675 verifyFormat("type Foo = (Bar<X>|Baz);"); in TEST_F()
1676 verifyFormat("let x: Bar|Baz;"); in TEST_F()
1677 verifyFormat("let x: Bar<X>|Baz;"); in TEST_F()
1678 verifyFormat("let x: (Foo|Bar)[];"); in TEST_F()
1679 verifyFormat("type X = {\n" in TEST_F()
1682 verifyFormat("export type X = {\n" in TEST_F()
1688 verifyFormat("let x: {x: number|null} = {x: number | null};"); in TEST_F()
1689 verifyFormat("let nested: {x: {y: number|null}};"); in TEST_F()
1690 verifyFormat("let mixed: {x: [number|null, {w: number}]};"); in TEST_F()
1691 verifyFormat("class X {\n" in TEST_F()
1700 verifyFormat("class C {\n x: string = 12;\n}"); in TEST_F()
1701 verifyFormat("class C {\n x(): string => 12;\n}"); in TEST_F()
1702 verifyFormat("class C {\n ['x' + 2]: string = 12;\n}"); in TEST_F()
1703 verifyFormat("class C {\n" in TEST_F()
1707 verifyFormat("class C {\n private x: string = 12;\n}"); in TEST_F()
1708 verifyFormat("class C {\n private static x: string = 12;\n}"); in TEST_F()
1709 verifyFormat("class C {\n static x(): string {\n return 'asd';\n }\n}"); in TEST_F()
1710 verifyFormat("class C extends P implements I {}"); in TEST_F()
1711 verifyFormat("class C extends p.P implements i.I {}"); in TEST_F()
1712 verifyFormat("x(class {\n" in TEST_F()
1715 verifyFormat("class Test {\n" in TEST_F()
1719 verifyFormat("foo = class Name {\n" in TEST_F()
1722 verifyFormat("foo = class {\n" in TEST_F()
1725 verifyFormat("class C {\n" in TEST_F()
1731 verifyFormat("class X {\n" in TEST_F()
1738 verifyFormat("@Component({\n" in TEST_F()
1747 verifyFormat("class X {\n" in TEST_F()
1755 verifyFormat("interface I {\n" in TEST_F()
1762 verifyFormat("interface a {}\n" in TEST_F()
1767 verifyFormat("interface I {\n" in TEST_F()
1773 verifyFormat("class C extends {} {}"); in TEST_F()
1774 verifyFormat("class C implements {bar: number} {}"); in TEST_F()
1776 verifyFormat("class C implements {\n" in TEST_F()
1780 verifyFormat("class C<P extends {}> {}"); in TEST_F()
1784 verifyFormat("enum Foo {\n" in TEST_F()
1788 verifyFormat("export /* somecomment*/ enum Foo {\n" in TEST_F()
1792 verifyFormat("enum Foo {\n" in TEST_F()
1797 verifyFormat("const enum Foo {\n" in TEST_F()
1801 verifyFormat("export const enum Foo {\n" in TEST_F()
1808 verifyFormat("@A\nclass C {\n}"); in TEST_F()
1809 verifyFormat("@A({arg: 'value'})\nclass C {\n}"); in TEST_F()
1810 verifyFormat("@A\n@B\nclass C {\n}"); in TEST_F()
1811 verifyFormat("class C {\n @A x: string;\n}"); in TEST_F()
1812 verifyFormat("class C {\n" in TEST_F()
1818 verifyFormat("class C {\n" in TEST_F()
1821 verifyFormat("class X {}\n" in TEST_F()
1823 verifyFormat("class X {\n" in TEST_F()
1829 verifyFormat("type X = number;\n" in TEST_F()
1831 verifyFormat("type X<Y> = Z<Y>;"); in TEST_F()
1832 verifyFormat("type X = {\n" in TEST_F()
1836 verifyFormat("export type X = {\n" in TEST_F()
1844 verifyFormat("type LongTypeIsReallyUnreasonablyLong =\n" in TEST_F()
1847 verifyFormat("interface AbstractStrategyFactoryProvider {\n" in TEST_F()
1855 verifyFormat("x = () => {\n" in TEST_F()
1868 verifyFormat("import SomeThing from 'some/module.js';"); in TEST_F()
1869 verifyFormat("import {X, Y} from 'some/module.js';"); in TEST_F()
1870 verifyFormat("import a, {X, Y} from 'some/module.js';"); in TEST_F()
1871 verifyFormat("import {X, Y,} from 'some/module.js';"); in TEST_F()
1872 verifyFormat("import {X as myLocalX, Y as myLocalY} from 'some/module.js';"); in TEST_F()
1874 verifyFormat("import {X as myX} from 'm';", "import {X as\n" in TEST_F()
1876 verifyFormat("import * as lib from 'some/module.js';"); in TEST_F()
1877 verifyFormat("var x = {import: 1};\nx.import = 2;"); in TEST_F()
1879 verifyFormat("function() {\n" in TEST_F()
1884 verifyFormat("export function fn() {\n" in TEST_F()
1887 verifyFormat("export function A() {}\n" in TEST_F()
1890 verifyFormat("export default () => {\n" in TEST_F()
1894 verifyFormat("export const x = 12;"); in TEST_F()
1895 verifyFormat("export default class X {}"); in TEST_F()
1896 verifyFormat("export {X, Y} from 'some/module.js';"); in TEST_F()
1897 verifyFormat("export {X, Y,} from 'some/module.js';"); in TEST_F()
1898 verifyFormat("export {SomeVeryLongExport as X, " in TEST_F()
1901 verifyFormat("export let someRatherLongVariableName =\n" in TEST_F()
1904 verifyFormat("export {\n" in TEST_F()
1910 verifyFormat("export class C {\n" in TEST_F()
1914 verifyFormat("export class X {\n" in TEST_F()
1917 verifyFormat("export abstract class X {\n" in TEST_F()
1920 verifyFormat("export default class X {\n" in TEST_F()
1923 verifyFormat("export default function() {\n return 1;\n}"); in TEST_F()
1924 verifyFormat("export var x = 12;"); in TEST_F()
1925 verifyFormat("class C {}\n" in TEST_F()
1928 verifyFormat("export var x: number = 12;"); in TEST_F()
1929 verifyFormat("export const y = {\n" in TEST_F()
1933 verifyFormat("export enum Foo {\n" in TEST_F()
1938 verifyFormat("export default [\n" in TEST_F()
1942 verifyFormat("export default [];"); in TEST_F()
1943 verifyFormat("export default () => {};"); in TEST_F()
1944 verifyFormat("export default () => {\n" in TEST_F()
1948 verifyFormat("export interface Foo {\n" in TEST_F()
1959 verifyFormat("import {VeryLongImportsAreAnnoying, VeryLongImportsAreAnnoying," in TEST_F()
1964 verifyFormat("import {\n" in TEST_F()
1970 verifyFormat("import {\n" in TEST_F()
1975 verifyFormat("export {\n" in TEST_F()
1982 verifyFormat("import {\n" in TEST_F()
1995 verifyFormat("var x = `hello\n" in TEST_F()
2002 verifyFormat("var x =\n" in TEST_F()
2005 verifyFormat("var x = `hello ${world}` >= some();", in TEST_F()
2007 verifyFormat("var x = `hellö ${wörld}` >= söme();", in TEST_F()
2009 verifyFormat("var x = `hello\n" in TEST_F()
2016 verifyFormat("var x = `hello\n" in TEST_F()
2023 verifyFormat("var x =\n" in TEST_F()
2026 verifyFormat("var x =\n `multi\n line`;", "var x = `multi\n line`;", in TEST_F()
2028 verifyFormat("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(\n" in TEST_F()
2031 verifyFormat( in TEST_F()
2040 verifyFormat("var a = aaaaaaaaaaaaaaaaaaaaaaaaaaaa ||\n" in TEST_F()
2044 verifyFormat("var x = `hello` == `hello`;"); in TEST_F()
2047 verifyFormat("var x = `//a`;\n" in TEST_F()
2051 verifyFormat("var x = `/*a`;\n" in TEST_F()
2056 verifyFormat("var x = `'`; // comment with matching quote '\n" in TEST_F()
2058 verifyFormat("var x = `\"`; // comment with matching quote \"\n" in TEST_F()
2060 verifyFormat("it(`'aaaaaaaaaaaaaaa `, aaaaaaaaa);", in TEST_F()
2064 verifyFormat("var x = 1 // `/*a`;\n" in TEST_F()
2068 verifyFormat("/* ` */ var x = 1; /* ` */", "/* ` */ var x\n= 1; /* ` */"); in TEST_F()
2070 verifyFormat("var x = `/*a`;\n" in TEST_F()
2075 verifyFormat("var x = ` \\` a`;\n" in TEST_F()
2080 verifyFormat("var x = ` \\${foo}`;\n"); in TEST_F()
2084 verifyFormat("var f = `aaaa ${a ? 'a' : 'b'}`;"); in TEST_F()
2088 verifyFormat("var f = `aaaaaaaaaaaaa:${aaaaaaa.aaaaa} aaaaaaaa\n" in TEST_F()
2092 verifyFormat("var x = someFunction(`${})`) //\n" in TEST_F()
2094 verifyFormat("var x = someFunction(`${aaaa}${\n" in TEST_F()
2100 verifyFormat("var f = `aaaaaaaaaaaaaaaaaa: ${\n" in TEST_F()
2105 verifyFormat("var f = `\n" in TEST_F()
2112 verifyFormat("var f = `\n" in TEST_F()
2123 verifyFormat("var f = `\n" in TEST_F()
2136 verifyFormat("var x = `hello${world}`;", "var x = `hello${\n" in TEST_F()
2142 verifyFormat( in TEST_F()
2144 verifyFormat("var x = `he${({text: 'll'}.text)}o`;"); in TEST_F()
2147 verifyFormat("}"); in TEST_F()
2151 verifyFormat("var x = html`<ul>`;"); in TEST_F()
2152 verifyFormat("yield `hello`;"); in TEST_F()
2153 verifyFormat("var f = {\n" in TEST_F()
2162 verifyFormat("var x = <type>foo;"); in TEST_F()
2163 verifyFormat("var x = foo as type;"); in TEST_F()
2164 verifyFormat("let x = (a + b) as\n" in TEST_F()
2167 verifyFormat("foo = <Bar[]>[\n" in TEST_F()
2171 verifyFormat("var x = [{x: 1} as type];"); in TEST_F()
2172 verifyFormat("x = x as [a, b];"); in TEST_F()
2173 verifyFormat("x = x as {a: string};"); in TEST_F()
2174 verifyFormat("x = x as (string);"); in TEST_F()
2175 verifyFormat("x = x! as (string);"); in TEST_F()
2176 verifyFormat("x = y! in z;"); in TEST_F()
2177 verifyFormat("var x = something.someFunction() as\n" in TEST_F()
2183 verifyFormat("class X<Y> {}"); in TEST_F()
2184 verifyFormat("new X<Y>();"); in TEST_F()
2185 verifyFormat("foo<Y>(a);"); in TEST_F()
2186 verifyFormat("var x: X<Y>[];"); in TEST_F()
2187 verifyFormat("class C extends D<E> implements F<G>, H<I> {}"); in TEST_F()
2188 verifyFormat("function f(a: List<any> = null) {}"); in TEST_F()
2189 verifyFormat("function f(): List<any> {}"); in TEST_F()
2190 verifyFormat("function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa():\n" in TEST_F()
2192 verifyFormat("function aaaaaaaaaa(\n" in TEST_F()
2199 verifyFormat( in TEST_F()
2207 verifyFormat("function x(a?: b, c?, d?) {}"); in TEST_F()
2208 verifyFormat("class X {\n" in TEST_F()
2212 verifyFormat("interface X {\n" in TEST_F()
2215 verifyFormat("constructor({aa}: {\n" in TEST_F()
2224 verifyFormat("var x: {[k: string]: v};"); in TEST_F()
2228 verifyFormat("xxxxxxxxxxx(\n" in TEST_F()
2231 verifyFormat("xxxxxxxxxxx(\n" in TEST_F()
2235 verifyFormat("xxxxxxxxxxx(\n" in TEST_F()
2241 verifyFormat("while (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &&\n" in TEST_F()
2246 verifyFormat("/**\n" in TEST_F()
2253 verifyFormat("/**\n" in TEST_F()
2260 verifyFormat("/**\n" in TEST_F()
2267 verifyFormat("/**\n" in TEST_F()
2276 verifyFormat("/**\n" in TEST_F()
2285 verifyFormat("/**\n" in TEST_F()
2294 verifyFormat("/**\n" in TEST_F()
2303 verifyFormat("/**\n" in TEST_F()
2310 verifyFormat("/**\n" in TEST_F()
2345 verifyFormat("// Comment that needs wrapping. Comment that needs wrapping. " in TEST_F()
2357 verifyFormat("// Comment that needs wrapping. Comment that needs wrapping. " in TEST_F()
2365 verifyFormat("// Comment that needs wrapping. Comment that needs wrapping. " in TEST_F()
2376 verifyFormat("var x = 'foo';", "var x = \"foo\";"); in TEST_F()
2377 verifyFormat("var x = 'fo\\'o\\'';", "var x = \"fo'o'\";"); in TEST_F()
2378 verifyFormat("var x = 'fo\\'o\\'';", "var x = \"fo\\'o'\";"); in TEST_F()
2379 verifyFormat("var x =\n" in TEST_F()
2385 verifyFormat("var x = 'fo\"o';", "var x = \"fo\\\"o\";"); in TEST_F()
2387 verifyFormat("var x = 'fo\"o';", "var x = \"fo\\\"o\";", in TEST_F()
2389 verifyFormat("// clang-format off\n" in TEST_F()
2400 verifyFormat("let x = someVeryLongFunctionThatGoesOnAndOn(\n" in TEST_F()
2405 verifyFormat("let x =\n" in TEST_F()
2417 verifyFormat("var x = \"foo\";", DoubleQuotes); in TEST_F()
2418 verifyFormat("var x = \"foo\";", "var x = 'foo';", DoubleQuotes); in TEST_F()
2419 verifyFormat("var x = \"fo'o\";", "var x = 'fo\\'o';", DoubleQuotes); in TEST_F()
2425 verifyFormat("var x = \"foo\";", LeaveQuotes); in TEST_F()
2426 verifyFormat("var x = 'foo';", LeaveQuotes); in TEST_F()
2430 verifyFormat("#!/usr/bin/env node\n" in TEST_F()
2437 verifyFormat("let x = foo!.bar();\n"); in TEST_F()
2438 verifyFormat("let x = foo ? bar! : baz;\n"); in TEST_F()
2439 verifyFormat("let x = !foo;\n"); in TEST_F()
2440 verifyFormat("if (!+a) {\n}"); in TEST_F()
2441 verifyFormat("let x = foo[0]!;\n"); in TEST_F()
2442 verifyFormat("let x = (foo)!;\n"); in TEST_F()
2443 verifyFormat("let x = x(foo!);\n"); in TEST_F()
2444 verifyFormat("a.aaaaaa(a.a!).then(\n" in TEST_F()
2447 verifyFormat("let x = foo! - 1;\n"); in TEST_F()
2448 verifyFormat("let x = {foo: 1}!;\n"); in TEST_F()
2449 verifyFormat("let x = hello.foo()!\n" in TEST_F()
2454 verifyFormat("let x = namespace!;\n"); in TEST_F()
2455 verifyFormat("return !!x;\n"); in TEST_F()
2460 verifyFormat("return operator && (aa);"); in TEST_F()
2462 verifyFormat("const slots: Slot[];"); in TEST_F()
2465 verifyFormat("auto!;"); in TEST_F()
2466 verifyFormat("char!;"); in TEST_F()
2467 verifyFormat("concept!;"); in TEST_F()
2468 verifyFormat("double!;"); in TEST_F()
2469 verifyFormat("extern!;"); in TEST_F()
2470 verifyFormat("float!;"); in TEST_F()
2471 verifyFormat("inline!;"); in TEST_F()
2472 verifyFormat("int!;"); in TEST_F()
2473 verifyFormat("long!;"); in TEST_F()
2474 verifyFormat("register!;"); in TEST_F()
2475 verifyFormat("restrict!;"); in TEST_F()
2476 verifyFormat("sizeof!;"); in TEST_F()
2477 verifyFormat("struct!;"); in TEST_F()
2478 verifyFormat("typedef!;"); in TEST_F()
2479 verifyFormat("union!;"); in TEST_F()
2480 verifyFormat("unsigned!;"); in TEST_F()
2481 verifyFormat("volatile!;"); in TEST_F()
2482 verifyFormat("_Alignas!;"); in TEST_F()
2483 verifyFormat("_Alignof!;"); in TEST_F()
2484 verifyFormat("_Atomic!;"); in TEST_F()
2485 verifyFormat("_Bool!;"); in TEST_F()
2486 verifyFormat("_Complex!;"); in TEST_F()
2487 verifyFormat("_Generic!;"); in TEST_F()
2488 verifyFormat("_Imaginary!;"); in TEST_F()
2489 verifyFormat("_Noreturn!;"); in TEST_F()
2490 verifyFormat("_Static_assert!;"); in TEST_F()
2491 verifyFormat("_Thread_local!;"); in TEST_F()
2492 verifyFormat("__func__!;"); in TEST_F()
2493 verifyFormat("__objc_yes!;"); in TEST_F()
2494 verifyFormat("__objc_no!;"); in TEST_F()
2495 verifyFormat("asm!;"); in TEST_F()
2496 verifyFormat("bool!;"); in TEST_F()
2497 verifyFormat("const_cast!;"); in TEST_F()
2498 verifyFormat("dynamic_cast!;"); in TEST_F()
2499 verifyFormat("explicit!;"); in TEST_F()
2500 verifyFormat("friend!;"); in TEST_F()
2501 verifyFormat("mutable!;"); in TEST_F()
2502 verifyFormat("operator!;"); in TEST_F()
2503 verifyFormat("reinterpret_cast!;"); in TEST_F()
2504 verifyFormat("static_cast!;"); in TEST_F()
2505 verifyFormat("template!;"); in TEST_F()
2506 verifyFormat("typename!;"); in TEST_F()
2507 verifyFormat("typeid!;"); in TEST_F()
2508 verifyFormat("using!;"); in TEST_F()
2509 verifyFormat("virtual!;"); in TEST_F()
2510 verifyFormat("wchar_t!;"); in TEST_F()
2513 verifyFormat("x.type!;"); in TEST_F()
2514 verifyFormat("x.get!;"); in TEST_F()
2515 verifyFormat("x.set!;"); in TEST_F()
2519 verifyFormat("let x = foo?.bar?.baz();\n"); in TEST_F()
2520 verifyFormat("let x = foo?.(foo);\n"); in TEST_F()
2521 verifyFormat("let x = foo?.['arr'];\n"); in TEST_F()
2525 verifyFormat("const val = something ?? 'some other default';\n"); in TEST_F()
2526 verifyFormat( in TEST_F()
2534 verifyFormat("a &&= b;\n"); in TEST_F()
2535 verifyFormat("a ||= b;\n"); in TEST_F()
2538 verifyFormat("a ?" in TEST_F()
2543 verifyFormat("y = x ? 1 : 2;"); in TEST_F()
2544 verifyFormat("x ? 1 : 2;"); in TEST_F()
2545 verifyFormat("class Foo {\n" in TEST_F()
2552 verifyFormat("import {x} from 'x'; // from some location", in TEST_F()
2554 verifyFormat("// taze: x from 'location'", getGoogleJSStyleWithColumns(10)); in TEST_F()
2555 verifyFormat("/// <reference path=\"some/location\" />", in TEST_F()
2560 verifyFormat("squared = x ** 2;"); in TEST_F()
2561 verifyFormat("squared **= 2;"); in TEST_F()
2567 verifyFormat("var l = [\n" in TEST_F()
2573 verifyFormat("var l = [\n" in TEST_F()
2579 verifyFormat("someFunction(\n" in TEST_F()
2586 verifyFormat("someFunction(\n" in TEST_F()
2593 verifyFormat("var o = {\n" in TEST_F()
2600 verifyFormat("var o = {\n" in TEST_F()
2610 verifyFormat("// hello \\\n" in TEST_F()
2615 verifyFormat("/* ignore \\\n" in TEST_F()
2621 verifyFormat("// st \\ art\\\n" in TEST_F()
2652 verifyFormat("callFoo(/*spaceAfterParameterNamingComment=*/ 1);"); in TEST_F()
2658 verifyFormat( // wrap in TEST_F()
2665 verifyFormat("class Example {\n" in TEST_F()
2687 verifyFormat("class Example {\n" in TEST_F()
2694 verifyFormat( in TEST_F()
2709 verifyFormat("x = 1_000_000 + 12;", "x = 1_000_000 + 12;"); in TEST_F()
2715 verifyFormat("let letVariable = 5;\n" in TEST_F()
2719 verifyFormat("let letVariable = 5;\n" in TEST_F()
2723 verifyFormat("let letVariable = 5;\n" in TEST_F()
2727 verifyFormat("let letVariable = 5;\n" in TEST_F()
2731 verifyFormat("let letVariable = 5;\n" in TEST_F()
2735 verifyFormat("double letVariable = 5;\n" in TEST_F()
2739 verifyFormat("const letVariable = 5;\n" in TEST_F()
2743 verifyFormat("int letVariable = 5;\n" in TEST_F()
2752 verifyFormat("let letVariable = 5;\n" in TEST_F()
2756 verifyFormat("let letVariable = 5;\n" in TEST_F()
2760 verifyFormat("let letVariable = 5;\n" in TEST_F()
2764 verifyFormat("let letVariable = 5;\n" in TEST_F()
2768 verifyFormat("let letVariable = 5;\n" in TEST_F()
2772 verifyFormat("double letVariable = 5;\n" in TEST_F()
2776 verifyFormat("const letVariable = 5;\n" in TEST_F()
2780 verifyFormat("int letVariable = 5;\n" in TEST_F()
2789 verifyFormat("let letVariable = 5;\n" in TEST_F()
2793 verifyFormat("let letVariable = 5;\n" in TEST_F()
2797 verifyFormat("let letVariable = 5;\n" in TEST_F()
2801 verifyFormat("let letVariable = 5;\n" in TEST_F()
2805 verifyFormat("let letVariable = 5;\n" in TEST_F()
2809 verifyFormat("double letVariable = 5;\n" in TEST_F()
2813 verifyFormat("const letVariable = 5;\n" in TEST_F()
2817 verifyFormat("int letVariable = 5;\n" in TEST_F()