diff options
Diffstat (limited to 'rust/src/web.rs')
| -rw-r--r-- | rust/src/web.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rust/src/web.rs b/rust/src/web.rs index af27eda..3d9fcda 100644 --- a/rust/src/web.rs +++ b/rust/src/web.rs @@ -432,6 +432,22 @@ mod app_tests { } #[test] + async fn client_generates_nested_applications_and_constants_at_level_5() { + let mut client = client(); + client.grade = 5; + + let (input, _) = client.generate_expr(); + + let parsed = parse(&input); + match &parsed[..] { + [Value::App(_, _)] => (), + [Value::Sym(_)] => (), + [Value::Num(_)] => (), + _ => panic!("Expected symbol, got {:?}", parsed), + } + } + + #[test] async fn client_increases_grade_on_successful_test() { let mut client = client(); let expected = "1".to_string(); |
