truecalc-core 3.2.0

Formula engine with exact Google Sheets semantics — stateless, embeddable evaluator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::super::sumsq_fn;
use crate::types::{ErrorKind, Value};

#[test]
fn wrong_arity_zero_args() {
    assert_eq!(sumsq_fn(&[]), Value::Error(ErrorKind::NA));
}

#[test]
fn error_propagated() {
    let result = sumsq_fn(&[Value::Number(1.0), Value::Error(ErrorKind::Value)]);
    assert_eq!(result, Value::Error(ErrorKind::Value));
}