Skip to content

Commit 7a5cd62

Browse files
committed
ucd-parse: add test case for ISO_Comment
This checks that we are parsing the ISO_Comment alias correctly. This test never failed, but was part of debugging a bug related to 'c' being incorrectly assigned as an alias to the ISO_Comment.
1 parent 82337f1 commit 7a5cd62

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ucd-parse/src/property_aliases.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,13 @@ mod tests {
9999
assert_eq!(row.long, "kRSUnicode");
100100
assert_eq!(row.aliases, vec!["Unicode_Radical_Stroke", "URS"]);
101101
}
102+
103+
#[test]
104+
fn parse5() {
105+
let line = "isc ; ISO_Comment";
106+
let row: PropertyAlias = line.parse().unwrap();
107+
assert_eq!(row.abbreviation, "isc");
108+
assert_eq!(row.long, "ISO_Comment");
109+
assert!(row.aliases.is_empty());
110+
}
102111
}

0 commit comments

Comments
 (0)