moar tests

This commit is contained in:
2025-11-22 13:49:39 -07:00
parent 2ad1eef3e8
commit 0c4ebedacf
2 changed files with 16 additions and 1 deletions

View File

@@ -74,12 +74,17 @@ fn let_var_args() -> anyhow::Result<()> {
#[test]
fn incorrect_args_count() -> anyhow::Result<()> {
let compiled = compile! {
debug
result
"
fn doSomething(arg1, arg2){};
let i = doSomething();
"
};
assert!(matches!(
compiled,
Err(super::super::Error::AgrumentMismatch(_))
));
Ok(())
}