Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: add test

appflowy8d125a07c569
diff --git a/frontend/rust-lib/flowy-grid/src/services/field/type_options/number_type_option.rs b/frontend/rust-lib/flowy-grid/src/services/field/type_options/number_type_option.rs
index e9a0ca7218..03b4b194b0 100644
--- a/frontend/rust-lib/flowy-grid/src/services/field/type_options/number_type_option.rs
+++ b/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),