Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Aug 20, 2024
1 parent 1228ca4 commit b13f8e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions adana-script/src/tests/struc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,14 @@ fn test_struc_access_key9() {
ctx["x"].read().unwrap().clone(),
Primitive::String("hello world".to_string())
);
let expr = r#"x= struct{
x:"hello",
y: 9
}.x + " world"
"#;
let _ = compute(expr, &mut ctx, "N/A").unwrap();
assert_eq!(
ctx["x"].read().unwrap().clone(),
Primitive::String("hello world".to_string())
);
}

0 comments on commit b13f8e7

Please sign in to comment.