• Home
  • Raw
  • Download

Lines Matching full:fmt

52   auto fmt = [](StringRef str) {  in TEST()  local
58 EXPECT_EQ(fmt({"\0", 1}), QUOTE("")); in TEST()
59 EXPECT_EQ(fmt("\a"), QUOTE(R"(\a)")); in TEST()
60 EXPECT_EQ(fmt("\b"), QUOTE(R"(\b)")); in TEST()
61 EXPECT_EQ(fmt("\f"), QUOTE(R"(\f)")); in TEST()
62 EXPECT_EQ(fmt("\n"), QUOTE(R"(\n)")); in TEST()
63 EXPECT_EQ(fmt("\r"), QUOTE(R"(\r)")); in TEST()
64 EXPECT_EQ(fmt("\t"), QUOTE(R"(\t)")); in TEST()
65 EXPECT_EQ(fmt("\v"), QUOTE(R"(\v)")); in TEST()
66 EXPECT_EQ(fmt("\""), QUOTE(R"(\")")); in TEST()
67 EXPECT_EQ(fmt("\'"), QUOTE(R"(')")); in TEST()
68 EXPECT_EQ(fmt("\\"), QUOTE(R"(\\)")); in TEST()
71 EXPECT_EQ(fmt("'"), QUOTE("'")); in TEST()
72 EXPECT_EQ(fmt("a"), QUOTE("a")); in TEST()
73 EXPECT_EQ(fmt("Z"), QUOTE("Z")); in TEST()
74 EXPECT_EQ(fmt("��"), QUOTE("��")); in TEST()
77 EXPECT_EQ(fmt("\uD55C"), QUOTE("\uD55C")); in TEST()
78 EXPECT_EQ(fmt("\U00010348"), QUOTE("\U00010348")); in TEST()
80 EXPECT_EQ(fmt("\376"), QUOTE(R"(\xfe)")); // \376 is 254 in decimal. in TEST()
81 EXPECT_EQ(fmt("\xfe"), QUOTE(R"(\xfe)")); // \xfe is 254 in decimal. in TEST()
86 auto fmt = [](StringRef str) { in TEST() local
92 EXPECT_EQ(fmt({"\0", 1}), QUOTE("")); in TEST()
93 EXPECT_EQ(fmt("\a"), QUOTE(R"(\a)")); in TEST()
94 EXPECT_EQ(fmt("\b"), QUOTE(R"(\b)")); in TEST()
95 EXPECT_EQ(fmt("\f"), QUOTE(R"(\f)")); in TEST()
96 EXPECT_EQ(fmt("\n"), QUOTE(R"(\n)")); in TEST()
97 EXPECT_EQ(fmt("\r"), QUOTE(R"(\r)")); in TEST()
98 EXPECT_EQ(fmt("\t"), QUOTE(R"(\t)")); in TEST()
99 EXPECT_EQ(fmt("\v"), QUOTE(R"(\v)")); in TEST()
100 EXPECT_EQ(fmt("\""), QUOTE(R"(\")")); in TEST()
101 EXPECT_EQ(fmt("\'"), QUOTE(R"(')")); in TEST()
102 EXPECT_EQ(fmt("\\"), QUOTE(R"(\\)")); in TEST()
105 EXPECT_EQ(fmt("'"), QUOTE("'")); in TEST()
106 EXPECT_EQ(fmt("a"), QUOTE("a")); in TEST()
107 EXPECT_EQ(fmt("Z"), QUOTE("Z")); in TEST()
108 EXPECT_EQ(fmt("��"), QUOTE("��")); in TEST()
111 EXPECT_EQ(fmt("\uD55C"), QUOTE("\uD55C")); in TEST()
112 EXPECT_EQ(fmt("\U00010348"), QUOTE("\U00010348")); in TEST()
114 EXPECT_EQ(fmt("\376"), QUOTE(R"(\xfe)")); // \376 is 254 in decimal. in TEST()
115 EXPECT_EQ(fmt("\xfe"), QUOTE(R"(\xfe)")); // \xfe is 254 in decimal. in TEST()
120 auto fmt = [](StringRef str) { in TEST() local
126 EXPECT_EQ(fmt({"\0", 1}), QUOTE("")); in TEST()
127 EXPECT_EQ(fmt("\a"), QUOTE(R"(\a)")); in TEST()
128 EXPECT_EQ(fmt("\b"), QUOTE(R"(\u{8})")); in TEST()
129 EXPECT_EQ(fmt("\f"), QUOTE(R"(\u{c})")); in TEST()
130 EXPECT_EQ(fmt("\n"), QUOTE(R"(\n)")); in TEST()
131 EXPECT_EQ(fmt("\r"), QUOTE(R"(\r)")); in TEST()
132 EXPECT_EQ(fmt("\t"), QUOTE(R"(\t)")); in TEST()
133 EXPECT_EQ(fmt("\v"), QUOTE(R"(\u{b})")); in TEST()
134 EXPECT_EQ(fmt("\""), QUOTE(R"(\")")); in TEST()
135 EXPECT_EQ(fmt("\'"), QUOTE(R"(\')")); in TEST()
136 EXPECT_EQ(fmt("\\"), QUOTE(R"(\\)")); in TEST()
139 EXPECT_EQ(fmt("'"), QUOTE(R"(\')")); in TEST()
140 EXPECT_EQ(fmt("a"), QUOTE("a")); in TEST()
141 EXPECT_EQ(fmt("Z"), QUOTE("Z")); in TEST()
142 EXPECT_EQ(fmt("��"), QUOTE("��")); in TEST()
145 EXPECT_EQ(fmt("\uD55C"), QUOTE("\uD55C")); in TEST()
146 EXPECT_EQ(fmt("\U00010348"), QUOTE("\U00010348")); in TEST()
148 EXPECT_EQ(fmt("\376"), QUOTE(R"(\u{fe})")); // \376 is 254 in decimal. in TEST()
149 EXPECT_EQ(fmt("\xfe"), QUOTE(R"(\u{fe})")); // \xfe is 254 in decimal. in TEST()