v/vlib/toml/tests/quoted_string_crlf_test.v

10 lines
229 B
V

import toml
fn test_quoted_string_crlf() {
toml_txt := 'str1 = """tcc \\\r\nabc \\\r\n123"""'
toml_doc := toml.parse_text(toml_txt) or { panic(err) }
value := toml_doc.value('str1').string()
assert value == 'tcc abc 123'
}