Add new acceptance test scenario 030
```
Error:
× Main thread panicked.
├─▶ at crates/lang/src/uplc.rs:1897:45
╰─▶ called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }
```
This commit is contained in:
parent
58c123a930
commit
030172e1dc
|
|
@ -0,0 +1,2 @@
|
|||
name = "acceptance_test_030"
|
||||
version = "0.0.0"
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
pub fn abs(a: Int) -> Int {
|
||||
if a < 0 {
|
||||
-a
|
||||
} else {
|
||||
a
|
||||
}
|
||||
}
|
||||
|
||||
test abs_1() {
|
||||
abs(-14) == 14
|
||||
}
|
||||
Loading…
Reference in New Issue