UPDATE: Dump of initial files
This commit is contained in:
15
base/src/test/test_fn_product.rs
Normal file
15
base/src/test/test_fn_product.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
#![allow(clippy::unwrap_used)]
|
||||
|
||||
use crate::test::util::new_empty_model;
|
||||
|
||||
#[test]
|
||||
fn test_fn_product_arguments() {
|
||||
let mut model = new_empty_model();
|
||||
|
||||
// Incorrect number of arguments
|
||||
model._set("A1", "=PRODUCT()");
|
||||
|
||||
model.evaluate();
|
||||
// Error (Incorrect number of arguments)
|
||||
assert_eq!(model._get_text("A1"), *"#ERROR!");
|
||||
}
|
||||
Reference in New Issue
Block a user