Files
2026-08-01 16:11:49 +03:00

26 lines
375 B
Rust

use indoc::indoc;
#[test]
fn c_string() {
let indoc = indoc! {c"
a
\\b
c"
};
let expected = c"a\n\n \\b\nc";
assert_eq!(indoc, expected);
}
#[test]
fn raw_c_string() {
let indoc = indoc! {cr#"
"a"
\\b
c"#
};
let expected = c"\"a\"\n\n \\\\b\nc";
assert_eq!(indoc, expected);
}