Found bug, unable to do an assignment expression with a syscall
This commit is contained in:
@@ -243,6 +243,22 @@ fn test_max() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// #[test]
|
||||
fn test_max_from_game() -> Result<()> {
|
||||
let compiled = compile! {
|
||||
result
|
||||
r#"
|
||||
let item = 0;
|
||||
item = max(1, 2);
|
||||
"#
|
||||
};
|
||||
|
||||
println!("{compiled:?}");
|
||||
assert!(compiled.is_empty());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_min() -> Result<()> {
|
||||
let compiled = compile! {
|
||||
|
||||
Reference in New Issue
Block a user