v / vlib / toml / tests / quoted_string_crlf_test.v
9 lines · 7 sloc · 229 bytes · d9b808cdc3a0f711c07a7f3e5d302eb3250ae208
Raw
1import toml
2
3fn test_quoted_string_crlf() {
4 toml_txt := 'str1 = """tcc \\\r\nabc \\\r\n123"""'
5 toml_doc := toml.parse_text(toml_txt) or { panic(err) }
6
7 value := toml_doc.value('str1').string()
8 assert value == 'tcc abc 123'
9}
10