add tests

This commit is contained in:
Jaroslaw Konik 2025-05-14 14:17:12 +02:00
parent 29689a0f6b
commit d97096bc9f
5 changed files with 20 additions and 4 deletions

View file

@ -0,0 +1,7 @@
STATE = {
"called_with" => nil
}
def test_func(x)
called_with = x
end

View file

@ -0,0 +1,9 @@
STATE = {
'a_value' => nil,
'b_value' => nil
}
def test_func(a, b)
STATE['a_value'] = a
STATE['b_value'] = b
end