Browse Source

chore: add test

appflowy 3 years ago
parent
commit
8d125a07c5

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

@@ -644,6 +644,12 @@ mod tests {
                         "¥18,443".to_owned()
                     );
                 }
+                NumberFormat::Yuan => {
+                    assert_eq!(
+                        type_option.decode_cell_data(data("18443"), &field_meta),
+                        "CN¥18,443".to_owned()
+                    );
+                }
                 NumberFormat::EUR => {
                     assert_eq!(
                         type_option.decode_cell_data(data("18443"), &field_meta),