Skip to content

Commit 3eb1360

Browse files
authored
test: add more cases for checkout_box_description_test (#1639)
1 parent e0a392d commit 3eb1360

File tree

1 file changed

+4
-0
lines changed
  • frontend/rust-lib/flowy-grid/src/services/field/type_options/checkbox_type_option

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ mod tests {
1616
// the checkout value will be checked if the value is "1", "true" or "yes"
1717
assert_checkbox(&type_option, "1", CHECK, &field_type, &field_rev);
1818
assert_checkbox(&type_option, "true", CHECK, &field_type, &field_rev);
19+
assert_checkbox(&type_option, "TRUE", CHECK, &field_type, &field_rev);
1920
assert_checkbox(&type_option, "yes", CHECK, &field_type, &field_rev);
21+
assert_checkbox(&type_option, "YES", CHECK, &field_type, &field_rev);
2022

2123
// the checkout value will be uncheck if the value is "false" or "No"
2224
assert_checkbox(&type_option, "false", UNCHECK, &field_type, &field_rev);
2325
assert_checkbox(&type_option, "No", UNCHECK, &field_type, &field_rev);
26+
assert_checkbox(&type_option, "NO", UNCHECK, &field_type, &field_rev);
27+
assert_checkbox(&type_option, "0", UNCHECK, &field_type, &field_rev);
2428

2529
// the checkout value will be empty if the value is letters or empty string
2630
assert_checkbox(&type_option, "abc", "", &field_type, &field_rev);

0 commit comments

Comments
 (0)