Lines Matching refs:isValidIdentifier
417 TEST(CharInfoTest, isValidIdentifier) { in TEST() argument
418 EXPECT_FALSE(isValidIdentifier("")); in TEST()
421 EXPECT_FALSE(isValidIdentifier(".")); in TEST()
422 EXPECT_FALSE(isValidIdentifier("\n")); in TEST()
423 EXPECT_FALSE(isValidIdentifier(" ")); in TEST()
424 EXPECT_FALSE(isValidIdentifier("\x80")); in TEST()
425 EXPECT_FALSE(isValidIdentifier("\xc2")); in TEST()
426 EXPECT_FALSE(isValidIdentifier("\xff")); in TEST()
427 EXPECT_FALSE(isValidIdentifier("$")); in TEST()
428 EXPECT_FALSE(isValidIdentifier("1")); in TEST()
430 EXPECT_TRUE(isValidIdentifier("_")); in TEST()
431 EXPECT_TRUE(isValidIdentifier("a")); in TEST()
432 EXPECT_TRUE(isValidIdentifier("z")); in TEST()
433 EXPECT_TRUE(isValidIdentifier("A")); in TEST()
434 EXPECT_TRUE(isValidIdentifier("Z")); in TEST()
437 EXPECT_FALSE(isValidIdentifier("._")); in TEST()
438 EXPECT_FALSE(isValidIdentifier("\n_")); in TEST()
439 EXPECT_FALSE(isValidIdentifier(" _")); in TEST()
440 EXPECT_FALSE(isValidIdentifier("\x80_")); in TEST()
441 EXPECT_FALSE(isValidIdentifier("\xc2_")); in TEST()
442 EXPECT_FALSE(isValidIdentifier("\xff_")); in TEST()
443 EXPECT_FALSE(isValidIdentifier("$_")); in TEST()
444 EXPECT_FALSE(isValidIdentifier("1_")); in TEST()
446 EXPECT_TRUE(isValidIdentifier("__")); in TEST()
447 EXPECT_TRUE(isValidIdentifier("a_")); in TEST()
448 EXPECT_TRUE(isValidIdentifier("z_")); in TEST()
449 EXPECT_TRUE(isValidIdentifier("A_")); in TEST()
450 EXPECT_TRUE(isValidIdentifier("Z_")); in TEST()
453 EXPECT_FALSE(isValidIdentifier("_.")); in TEST()
454 EXPECT_FALSE(isValidIdentifier("_\n")); in TEST()
455 EXPECT_FALSE(isValidIdentifier("_ ")); in TEST()
456 EXPECT_FALSE(isValidIdentifier("_\x80")); in TEST()
457 EXPECT_FALSE(isValidIdentifier("_\xc2")); in TEST()
458 EXPECT_FALSE(isValidIdentifier("_\xff")); in TEST()
459 EXPECT_FALSE(isValidIdentifier("_$")); in TEST()
460 EXPECT_TRUE(isValidIdentifier("_1")); in TEST()
462 EXPECT_TRUE(isValidIdentifier("__")); in TEST()
463 EXPECT_TRUE(isValidIdentifier("_a")); in TEST()
464 EXPECT_TRUE(isValidIdentifier("_z")); in TEST()
465 EXPECT_TRUE(isValidIdentifier("_A")); in TEST()
466 EXPECT_TRUE(isValidIdentifier("_Z")); in TEST()
469 EXPECT_FALSE(isValidIdentifier("__.")); in TEST()
470 EXPECT_FALSE(isValidIdentifier("__\n")); in TEST()
471 EXPECT_FALSE(isValidIdentifier("__ ")); in TEST()
472 EXPECT_FALSE(isValidIdentifier("__\x80")); in TEST()
473 EXPECT_FALSE(isValidIdentifier("__\xc2")); in TEST()
474 EXPECT_FALSE(isValidIdentifier("__\xff")); in TEST()
475 EXPECT_FALSE(isValidIdentifier("__$")); in TEST()
476 EXPECT_TRUE(isValidIdentifier("__1")); in TEST()
478 EXPECT_TRUE(isValidIdentifier("___")); in TEST()
479 EXPECT_TRUE(isValidIdentifier("__a")); in TEST()
480 EXPECT_TRUE(isValidIdentifier("__z")); in TEST()
481 EXPECT_TRUE(isValidIdentifier("__A")); in TEST()
482 EXPECT_TRUE(isValidIdentifier("__Z")); in TEST()
485 EXPECT_FALSE(isValidIdentifier("_._")); in TEST()
486 EXPECT_FALSE(isValidIdentifier("_\n_")); in TEST()
487 EXPECT_FALSE(isValidIdentifier("_ _")); in TEST()
488 EXPECT_FALSE(isValidIdentifier("_\x80_")); in TEST()
489 EXPECT_FALSE(isValidIdentifier("_\xc2_")); in TEST()
490 EXPECT_FALSE(isValidIdentifier("_\xff_")); in TEST()
491 EXPECT_FALSE(isValidIdentifier("_$_")); in TEST()
492 EXPECT_TRUE(isValidIdentifier("_1_")); in TEST()
494 EXPECT_TRUE(isValidIdentifier("___")); in TEST()
495 EXPECT_TRUE(isValidIdentifier("_a_")); in TEST()
496 EXPECT_TRUE(isValidIdentifier("_z_")); in TEST()
497 EXPECT_TRUE(isValidIdentifier("_A_")); in TEST()
498 EXPECT_TRUE(isValidIdentifier("_Z_")); in TEST()