summaryrefslogtreecommitdiff
path: root/rust/src/web.rs
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud@pankzsoft.com>2024-10-09 15:34:54 +0200
committerArnaud Bailly <arnaud@pankzsoft.com>2024-10-09 15:35:13 +0200
commit318f2008e708ea8fc2fde69525fd8ef530e68cc7 (patch)
tree5f3ce24364716804e473df419ed38cd58f40bc58 /rust/src/web.rs
parent2d64cfbafc81cc92bcca3fe758391fb94e5fea9f (diff)
downloadlambda-nantes-318f2008e708ea8fc2fde69525fd8ef530e68cc7.tar.gz
Fix tests and app spines representations
Diffstat (limited to 'rust/src/web.rs')
-rw-r--r--rust/src/web.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/rust/src/web.rs b/rust/src/web.rs
index f676b3c..6bba34e 100644
--- a/rust/src/web.rs
+++ b/rust/src/web.rs
@@ -485,7 +485,11 @@ mod app_tests {
let (input, _) = client.generate_expr();
- assert!(input.split(' ').count() > 2);
+ let parsed = parse(&input);
+ match &parsed[..] {
+ [Value::App(_, _)] => assert!(input.split(' ').count() >= 2),
+ _ => (),
+ }
}
#[test]
@@ -496,9 +500,8 @@ mod app_tests {
let (input, _) = client.generate_expr();
let parsed = parse(&input);
- match &parsed[..] {
- _ => panic!("Expected term, got {:?}", parsed),
- }
+
+ assert!(!parsed.is_empty());
}
#[test]