@@ -232,7 +232,7 @@ TEST_F(ParserTest, Errors) {
232
232
EXPECT_FALSE (parser.ParseTest (" foobar" , &err));
233
233
EXPECT_EQ (" input:1: expected '=', got eof\n "
234
234
" foobar\n "
235
- " ^ near here\n "
235
+ " ^ near here"
236
236
, err);
237
237
}
238
238
@@ -242,7 +242,7 @@ TEST_F(ParserTest, Errors) {
242
242
EXPECT_FALSE (parser.ParseTest (" x 3" , &err));
243
243
EXPECT_EQ (" input:1: expected '=', got identifier\n "
244
244
" x 3\n "
245
- " ^ near here\n "
245
+ " ^ near here"
246
246
, err);
247
247
}
248
248
@@ -252,7 +252,7 @@ TEST_F(ParserTest, Errors) {
252
252
EXPECT_FALSE (parser.ParseTest (" x = 3" , &err));
253
253
EXPECT_EQ (" input:1: unexpected EOF\n "
254
254
" x = 3\n "
255
- " ^ near here\n "
255
+ " ^ near here"
256
256
, err);
257
257
}
258
258
@@ -263,7 +263,7 @@ TEST_F(ParserTest, Errors) {
263
263
EXPECT_FALSE (parser.ParseTest (" x = 3\n y 2" , &err));
264
264
EXPECT_EQ (" input:2: expected '=', got identifier\n "
265
265
" y 2\n "
266
- " ^ near here\n "
266
+ " ^ near here"
267
267
, err);
268
268
}
269
269
@@ -274,7 +274,7 @@ TEST_F(ParserTest, Errors) {
274
274
EXPECT_FALSE (parser.ParseTest (" x = $" , &err));
275
275
EXPECT_EQ (" input:1: bad $-escape (literal $ must be written as $$)\n "
276
276
" x = $\n "
277
- " ^ near here\n "
277
+ " ^ near here"
278
278
, err);
279
279
}
280
280
@@ -285,7 +285,7 @@ TEST_F(ParserTest, Errors) {
285
285
EXPECT_FALSE (parser.ParseTest (" x = $\n $[\n " , &err));
286
286
EXPECT_EQ (" input:2: bad $-escape (literal $ must be written as $$)\n "
287
287
" $[\n "
288
- " ^ near here\n "
288
+ " ^ near here"
289
289
, err);
290
290
}
291
291
@@ -305,7 +305,7 @@ TEST_F(ParserTest, Errors) {
305
305
EXPECT_FALSE (parser.ParseTest (" build x: y z\n " , &err));
306
306
EXPECT_EQ (" input:1: unknown build rule 'y'\n "
307
307
" build x: y z\n "
308
- " ^ near here\n "
308
+ " ^ near here"
309
309
, err);
310
310
}
311
311
@@ -316,7 +316,7 @@ TEST_F(ParserTest, Errors) {
316
316
EXPECT_FALSE (parser.ParseTest (" build x:: y z\n " , &err));
317
317
EXPECT_EQ (" input:1: expected build command name\n "
318
318
" build x:: y z\n "
319
- " ^ near here\n "
319
+ " ^ near here"
320
320
, err);
321
321
}
322
322
@@ -329,7 +329,7 @@ TEST_F(ParserTest, Errors) {
329
329
&err));
330
330
EXPECT_EQ (" input:4: expected newline, got ':'\n "
331
331
" :\n "
332
- " ^ near here\n "
332
+ " ^ near here"
333
333
, err);
334
334
}
335
335
@@ -352,7 +352,7 @@ TEST_F(ParserTest, Errors) {
352
352
&err));
353
353
EXPECT_EQ (" input:2: bad $-escape (literal $ must be written as $$)\n "
354
354
" command = ${fafsd\n "
355
- " ^ near here\n "
355
+ " ^ near here"
356
356
, err);
357
357
}
358
358
@@ -366,7 +366,7 @@ TEST_F(ParserTest, Errors) {
366
366
&err));
367
367
EXPECT_EQ (" input:3: bad $-escape (literal $ must be written as $$)\n "
368
368
" build $: cat foo\n "
369
- " ^ near here\n "
369
+ " ^ near here"
370
370
, err);
371
371
}
372
372
@@ -389,7 +389,7 @@ TEST_F(ParserTest, Errors) {
389
389
&err));
390
390
EXPECT_EQ (" input:3: unexpected variable 'othervar'\n "
391
391
" othervar = bar\n "
392
- " ^ near here\n "
392
+ " ^ near here"
393
393
, err);
394
394
}
395
395
@@ -402,7 +402,7 @@ TEST_F(ParserTest, Errors) {
402
402
&err));
403
403
EXPECT_EQ (" input:3: bad $-escape (literal $ must be written as $$)\n "
404
404
" build $: cc bar.cc\n "
405
- " ^ near here\n "
405
+ " ^ near here"
406
406
, err);
407
407
}
408
408
@@ -414,7 +414,7 @@ TEST_F(ParserTest, Errors) {
414
414
&err));
415
415
EXPECT_EQ (" input:1: expected target name\n "
416
416
" default\n "
417
- " ^ near here\n "
417
+ " ^ near here"
418
418
, err);
419
419
}
420
420
@@ -426,7 +426,7 @@ TEST_F(ParserTest, Errors) {
426
426
&err));
427
427
EXPECT_EQ (" input:1: unknown target 'nonexistent'\n "
428
428
" default nonexistent\n "
429
- " ^ near here\n "
429
+ " ^ near here"
430
430
, err);
431
431
}
432
432
@@ -440,7 +440,7 @@ TEST_F(ParserTest, Errors) {
440
440
&err));
441
441
EXPECT_EQ (" input:4: expected newline, got ':'\n "
442
442
" default b:\n "
443
- " ^ near here\n "
443
+ " ^ near here"
444
444
, err);
445
445
}
446
446
@@ -451,7 +451,7 @@ TEST_F(ParserTest, Errors) {
451
451
EXPECT_FALSE (parser.ParseTest (" default $a\n " , &err));
452
452
EXPECT_EQ (" input:1: empty path\n "
453
453
" default $a\n "
454
- " ^ near here\n "
454
+ " ^ near here"
455
455
, err);
456
456
}
457
457
@@ -510,7 +510,7 @@ TEST_F(ParserTest, MissingSubNinja) {
510
510
EXPECT_FALSE (parser.ParseTest (" subninja foo.ninja\n " , &err));
511
511
EXPECT_EQ (" input:1: loading 'foo.ninja': No such file or directory\n "
512
512
" subninja foo.ninja\n "
513
- " ^ near here\n "
513
+ " ^ near here"
514
514
, err);
515
515
}
516
516
0 commit comments