Skip to content

Commit 8d125a0

Browse files
committed
chore: add test
1 parent f3b899d commit 8d125a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/rust-lib/flowy-grid/src/services/field/type_options/number_type_option.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ mod tests {
644644
"¥18,443".to_owned()
645645
);
646646
}
647+
NumberFormat::Yuan => {
648+
assert_eq!(
649+
type_option.decode_cell_data(data("18443"), &field_meta),
650+
"CN¥18,443".to_owned()
651+
);
652+
}
647653
NumberFormat::EUR => {
648654
assert_eq!(
649655
type_option.decode_cell_data(data("18443"), &field_meta),

0 commit comments

Comments
 (0)