Skip to content

Commit 9fa3949

Browse files
committed
Add coverage test for fraction encoding logic
1 parent c058df6 commit 9fa3949

3 files changed

Lines changed: 451 additions & 0 deletions

File tree

libs/braillify/src/char_struct.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ mod test {
115115
CharType::KoreanPart('ㄱ')
116116
));
117117
assert!(matches!(CharType::new(' ').unwrap(), CharType::Space(' ')));
118+
assert!(matches!(
119+
CharType::new('½').unwrap(),
120+
CharType::Fraction('½')
121+
));
118122
}
119123

120124
proptest! {

0 commit comments

Comments
 (0)