Skip to content

Commit 82e76bc

Browse files
committed
Repro test non-ASCII text format parsing
Cherry-pick from #730
1 parent 4941283 commit 82e76bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-crates/protobuf-codegen-protoc-test/src/common/v2/test_fmt_text_format.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ fn test_string_bytes() {
114114
);
115115
}
116116

117+
#[test]
118+
fn non_ascii_strings() {
119+
test_text_format_str_descriptor("string_singular: \"À\"", &TestTypes::descriptor());
120+
// TODO: fix this.
121+
// test_text_format_str_descriptor("string_singular: \"日月\"", &TestTypes::descriptor());
122+
}
123+
117124
#[test]
118125
fn test_message() {
119126
test_text_format_str_descriptor("test_message_singular {}", &TestTypes::descriptor());

0 commit comments

Comments
 (0)