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
16
17
18
use super::super::isurl_fn;
use crate::types::Value;

#[test]
fn https_url_returns_true() {
    assert_eq!(
        isurl_fn(&[Value::Text("https://example.com".to_string())]),
        Value::Bool(true)
    );
}

#[test]
fn http_url_returns_true() {
    assert_eq!(
        isurl_fn(&[Value::Text("http://foo.bar".to_string())]),
        Value::Bool(true)
    );
}