module EmailDiffArrayTests def test_array_double_quoted emailtest ["1","2","3"], [">1",">2",">3","4"], [">1",">2",">3","4"] emailtest ["1"," > 2"," > 3"], [">1","> > 2","> > 3","4","5"], [">1","> > 2","> > 3","4","5"] end def test_array_double_quoted_remove emailtest ["1","2","3"], [">1",">2",">3","4"], [">1",">2",">3","4"], :remove emailtest ["1"," > 2"," > 3"], [">1","> > 2","> > 3","4","5"], [">1","> > 2","> > 3","4","5"], :remove end def test_array_quoted emailtest ["1","2","3"], [">1",">2",">3","4"], [">1",">2",">3","4"] emailtest ["1","2","3"], [">1",">2",">3","4","5"], [">1",">2",">3","4","5"] end def test_array_quoted_remove emailtest ["1","2","3"], [">1",">2",">3","4"], [">1",">2",">3","4"], :remove emailtest ["1","2","3"], [">1",">2",">3","4","5"], [">1",">2",">3","4","5"], :remove end def test_array_append emailtest [1,2,3], [1,2,3,4], [1,2,3,4] emailtest [1,2,3], [1,2,3,4,5], [1,2,3,4,5] end def test_array_append_remove emailtest [1,2,3], [1,2,3,4], [1,2,3,4], :remove emailtest [1,2,3], [1,2,3,4,5], [1,2,3,4,5], :remove end def test_array_prepend emailtest [1,2,3], [0,1,2,3], [0,888,1,2,3,999] emailtest [1,2,3], [-1,0,1,2,3], [-1,0,888,1,2,3,999] end def test_array_prepend_remove emailtest [1,2,3], [0,1,2,3], [0,], :remove emailtest [1,2,3], [-1,0,1,2,3], [-1,0,], :remove end def test_array_insert emailtest [1,2,3], [1,2,4,3], [1,2,4,888,3,999] emailtest [1,2,3], [1,2,4,5,3], [1,2,4,5,888,3,999] end def test_array_insert_remove emailtest [1,2,3], [1,2,4,3], [1,2,4], :remove emailtest [1,2,3], [1,2,4,5,3], [1,2,4,5], :remove end def test_array_remove emailtest [1,2,3], [1,3], [888,1,3,999] end def test_array_remove_remove emailtest [1,2,3], [1,3], [], :remove end def test_array_cutfront emailtest [1,2,3], [2,3], [888,2,3,999] emailtest [1,2,3], [3], [888,3,999] end def test_array_cutfront_remove emailtest [1,2,3], [2,3], [], :remove emailtest [1,2,3], [3], [], :remove end def test_array_cutback emailtest [1,2,3], [1,2], [888,1,2,999] emailtest [1,2,3], [1], [888,1,999] end def test_array_cutback_remove emailtest [1,2,3], [1,2], [], :remove emailtest [1,2,3], [1], [], :remove end def test_array_empty emailtest [1,2,3], [], [] end def test_array_empty_remove emailtest [1,2,3], [], [], :remove end def test_array_fill emailtest [], [1,2,3], [1,2,3] end def test_array_fill_remove emailtest [], [1,2,3], [1,2,3], :remove end def test_array_change emailtest [1,2,3], [1,4,3], [1,4,888,3,999] emailtest [1,2,3], [1,4,5], [1,4,5] emailtest [1,2,3,4], [1,5,4], [1,5,888,4,999] end def test_array_change_remove emailtest [1,2,3], [1,4,3], [1,4], :remove emailtest [1,2,3], [1,4,5], [1,4,5], :remove emailtest [1,2,3,4], [1,5,4], [1,5], :remove end def test_array_noop emailtest [1,2,3], [1,2,3], [888,1,2,3,999] end def test_array_noop_remove emailtest [1,2,3], [1,2,3], [], :remove end def test_array_grow emailtest [1,2,3], [4,1,5,2,6,3,7], [4,888,1,999,5,888,2,999,6,888,3,999,7] end def test_array_grow_remove emailtest [1,2,3], [4,1,5,2,6,3,7], [4,5,6,7], :remove end def test_array_shrink emailtest [1,2,3,4,5,6,7], [2,4,6], [888,2,4,6,999] end def test_array_shrink_remove emailtest [1,2,3,4,5,6,7], [2,4,6], [], :remove end end