From 3046bf44d25a082cb3b8e50cb3a8bad54169b96d Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Thu, 19 Jul 2012 23:25:11 -0700 Subject: [PATCH] Add another test for negative array index --- test/apps/rails3.1/lib/somelib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/apps/rails3.1/lib/somelib.rb b/test/apps/rails3.1/lib/somelib.rb index 1a59952b..00273fea 100644 --- a/test/apps/rails3.1/lib/somelib.rb +++ b/test/apps/rails3.1/lib/somelib.rb @@ -2,5 +2,6 @@ class MyLib def test_negative_array_index #This should not cause an error, but it used to [][-1] + [-1][-1] end end -- GitLab