blob: 20bc7f4d4c1955550cbd60ce5b7363c3871724cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#[cfg(test)]
mod tests {
use crate::models::properties::{FormulaResultValue, PropertyValue};
#[test]
fn parse_number_formula_prop() {
let _property: PropertyValue =
serde_json::from_str(include_str!("tests/formula_number_value.json")).unwrap();
}
#[test]
fn parse_date_formula_prop() {
let _property: PropertyValue =
serde_json::from_str(include_str!("tests/formula_date_value.json")).unwrap();
}
#[test]
fn parse_number_formula() {
let _value: FormulaResultValue = serde_json::from_str(
r#"{
"type": "number",
"number": 0
}"#,
)
.unwrap();
}
}
|