Skip to content

Commit

Permalink
feat(tests): review
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Nov 5, 2024
1 parent b382176 commit 2a2b530
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/tests/validity/variable_ref_operators.ab
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
// Output
// 5
// 4
// 4
// 4
// 0
// 0
// -1
// -1
// -1
// 0

fun value(ref value) {
var += 1
var -= 1
var *= 1
var /= 1
var %= 1
echo var
value += 1
echo value
value -= 1
echo value
value *= 1
echo value
value /= 1
echo value
value %= 1
echo value
}

let value_a = 4
Expand Down

0 comments on commit 2a2b530

Please sign in to comment.