@@ -391,7 +391,7 @@ TEST_F(test_lex, fail_lex_integer_loses_precision) {
391
391
diag_integer_literal_will_lose_precision, //
392
392
characters,
393
393
offsets_matcher (input, 0 , u8" 9007199254740993" _sv), //
394
- rounded_val, u8" 9007199254740992" sv ),
394
+ rounded_val, u8" 9007199254740992" _sv ),
395
395
}));
396
396
});
397
397
this ->check_tokens (u8" 999999999999999" _sv, {token_type::number});
@@ -408,7 +408,7 @@ TEST_F(test_lex, fail_lex_integer_loses_precision) {
408
408
characters,
409
409
offsets_matcher (input, 0 ,
410
410
310 ), //
411
- rounded_val, u8" inf" sv ),
411
+ rounded_val, u8" inf" _sv ),
412
412
}));
413
413
});
414
414
this ->check_tokens_with_errors (
@@ -423,7 +423,7 @@ TEST_F(test_lex, fail_lex_integer_loses_precision) {
423
423
offsets_matcher (input, 0 ,
424
424
309 ), //
425
425
rounded_val,
426
- u8" 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368" sv ),
426
+ u8" 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368" _sv ),
427
427
}));
428
428
});
429
429
this ->check_tokens_with_errors (
@@ -436,7 +436,7 @@ TEST_F(test_lex, fail_lex_integer_loses_precision) {
436
436
characters,
437
437
offsets_matcher (input, 0 ,
438
438
309 ), //
439
- rounded_val, u8" inf" sv ),
439
+ rounded_val, u8" inf" _sv ),
440
440
}));
441
441
});
442
442
this ->check_tokens_with_errors (
@@ -449,7 +449,7 @@ TEST_F(test_lex, fail_lex_integer_loses_precision) {
449
449
diag_integer_literal_will_lose_precision, //
450
450
characters,
451
451
offsets_matcher (input, 0 , u8" 18014398509481986" _sv), //
452
- rounded_val, u8" 18014398509481984" sv ),
452
+ rounded_val, u8" 18014398509481984" _sv ),
453
453
}));
454
454
});
455
455
}
@@ -3360,7 +3360,7 @@ TEST_F(test_lex, jsx_string) {
3360
3360
// https://github.com/facebook/jsx/pull/133
3361
3361
TEST_F (test_lex, jsx_string_ignores_comments) {
3362
3362
{
3363
- padded_string code (u8" ! 'hello // '\n world'" sv );
3363
+ padded_string code (u8" ! 'hello // '\n world'" _sv );
3364
3364
diag_collector errors;
3365
3365
lexer l (&code, &errors);
3366
3366
l.skip_in_jsx (); // Ignore '!'.
@@ -3378,7 +3378,7 @@ TEST_F(test_lex, jsx_string_ignores_comments) {
3378
3378
}
3379
3379
3380
3380
{
3381
- padded_string code (u8R"( ! "hello/* not"comment */world")" sv );
3381
+ padded_string code (u8R"( ! "hello/* not"comment */world")" _sv );
3382
3382
diag_collector errors;
3383
3383
lexer l (&code, &errors);
3384
3384
l.skip_in_jsx (); // Ignore '!'.
@@ -3397,7 +3397,7 @@ TEST_F(test_lex, jsx_string_ignores_comments) {
3397
3397
}
3398
3398
3399
3399
TEST_F (test_lex, unterminated_jsx_string) {
3400
- padded_string code (u8" ! 'hello" sv );
3400
+ padded_string code (u8" ! 'hello" _sv );
3401
3401
diag_collector errors;
3402
3402
lexer l (&code, &errors);
3403
3403
l.skip_in_jsx (); // Ignore '!'.
@@ -3423,14 +3423,14 @@ TEST_F(test_lex, jsx_tag) {
3423
3423
l.skip_in_jsx (); // Ignore '<'.
3424
3424
3425
3425
EXPECT_EQ (l.peek ().type , token_type::identifier);
3426
- EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" svg" sv );
3426
+ EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" svg" _sv );
3427
3427
3428
3428
l.skip_in_jsx ();
3429
3429
EXPECT_EQ (l.peek ().type , token_type::colon);
3430
3430
3431
3431
l.skip_in_jsx ();
3432
3432
EXPECT_EQ (l.peek ().type , token_type::identifier);
3433
- EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" rect" sv );
3433
+ EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" rect" _sv );
3434
3434
3435
3435
EXPECT_THAT (errors.errors , IsEmpty ());
3436
3436
}
@@ -3442,14 +3442,14 @@ TEST_F(test_lex, jsx_tag) {
3442
3442
l.skip_in_jsx (); // Ignore '<'.
3443
3443
3444
3444
EXPECT_EQ (l.peek ().type , token_type::identifier);
3445
- EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" myModule" sv );
3445
+ EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" myModule" _sv );
3446
3446
3447
3447
l.skip_in_jsx ();
3448
3448
EXPECT_EQ (l.peek ().type , token_type::dot);
3449
3449
3450
3450
l.skip_in_jsx ();
3451
3451
EXPECT_EQ (l.peek ().type , token_type::identifier);
3452
- EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" MyComponent" sv );
3452
+ EXPECT_EQ (l.peek ().identifier_name ().normalized_name (), u8" MyComponent" _sv );
3453
3453
3454
3454
EXPECT_THAT (errors.errors , IsEmpty ());
3455
3455
}
0 commit comments