add missing test case for multiple arguments in UNICODE

This commit is contained in:
Bruno Carvalhal
2024-11-13 09:03:20 +01:00
committed by Nicolás Hatcher Andrés
parent c2a2983937
commit e130f784fd

View File

@@ -55,7 +55,9 @@ fn test_error_cases() {
fn wrong_number_of_arguments() { fn wrong_number_of_arguments() {
let mut model = new_empty_model(); let mut model = new_empty_model();
model._set("A1", "=UNICODE()"); model._set("A1", "=UNICODE()");
model._set("A2", "=UNICODE(\"B\",\"A\")");
model.evaluate(); model.evaluate();
assert_eq!(model._get_text("A1"), *"#ERROR!"); assert_eq!(model._get_text("A1"), *"#ERROR!");
assert_eq!(model._get_text("A2"), *"#ERROR!");
} }