ganit-core 0.4.1

Spreadsheet formula engine — parser and evaluator for Excel-compatible formulas
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::super::*;
use crate::types::Value;

#[test]
fn replace_with_empty_string() {
    assert_eq!(
        replaceb_fn(&[
            Value::Text("Hello".to_string()),
            Value::Number(2.0),
            Value::Number(3.0),
            Value::Text("".to_string())
        ]),
        Value::Text("Ho".to_string())
    );
}