Create an object/Native demonstration: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 300: | Line 300: | ||
@test_throws String begin fibr["k"] = 55 end |
@test_throws String begin fibr["k"] = 55 end |
||
# test alternative constructor |
|||
# fibr = BackedUpImmutableDict("a" => 0, "b" => 1, "c" => 1, "d" => 2, |
|||
# "e" => 3, "f" => 5, "g" => 8, "h" => 13, "i" => 21, "j" => 34, "extra" => -1) |
|||
fibr["a"] = 9 |
fibr["a"] = 9 |
||
fibr["b"] = 7 |
fibr["b"] = 7 |
||
Line 315: | Line 311: | ||
</lang> |
</lang> |
||
All tests pass. |
All tests pass. |
||
=={{header|M2000 Interpreter}}== |
=={{header|M2000 Interpreter}}== |