D
Daniel Berger
Hi all,
I recently tried to write an assertion like so:
def test_array_infinity
array = [1,2,3]
assert_equal([1,2,3,"[...]"], array.push(array))
end
But, it appears that "[...]" is not a literal string. However, I can't
just remove the quotes, because then I get a syntax error.
How do I test this case?
Thanks,
Dan
I recently tried to write an assertion like so:
def test_array_infinity
array = [1,2,3]
assert_equal([1,2,3,"[...]"], array.push(array))
end
But, it appears that "[...]" is not a literal string. However, I can't
just remove the quotes, because then I get a syntax error.
How do I test this case?
Thanks,
Dan