浏览代码

chore: add test

appflowy 3 年之前
父节点
当前提交
8d125a07c5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      frontend/rust-lib/flowy-grid/src/services/field/type_options/number_type_option.rs

+ 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),