## Local variable test. seq = '' def fib(n) a = 0; b = 1 for _ in 0..n seq += to_string(a) + " " temp = a; a = b; b += temp; end end fib(10) assert(seq == '0 1 1 2 3 5 8 13 21 34 ')