We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4694d20 commit 699a2b5Copy full SHA for 699a2b5
src/libcore/tests/char.rs
@@ -186,6 +186,14 @@ fn test_escape_debug() {
186
assert_eq!(string('\u{100000}'), "\\u{100000}"); // private use 2
187
}
188
189
+#[test]
190
+fn test_debug() {
191
+ assert_eq!(format!("{:?}", 'a'), "'a'"); // ASCII character
192
+ assert_eq!(format!("{:?}", 'é'), "'é'"); // printable character
193
+ assert_eq!(format!("{:?}", '\u{301}'), "'\\u{301}'"); // combining character
194
+ assert_eq!(format!("{:?}", '\u{e000}'), "'\\u{e000}'"); // private use 1
195
+}
196
+
197
#[test]
198
fn test_escape_default() {
199
fn string(c: char) -> String {
0 commit comments