diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-21 09:06:46 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-21 10:00:22 +0100 |
commit | e50530ca3ab5db53ebc74314c54b62b91b932389 (patch) | |
tree | 9c7c2425229d7f3130e94f52ff36f57f7f79c185 /activesupport/test/core_ext | |
parent | 1d4554d766dbf8391689d91b4b88766757051c68 (diff) | |
download | rails-e50530ca3ab5db53ebc74314c54b62b91b932389.tar.gz rails-e50530ca3ab5db53ebc74314c54b62b91b932389.tar.bz2 rails-e50530ca3ab5db53ebc74314c54b62b91b932389.zip |
Reduced the number of literal aliases to the range that has actually seen personal use. With the massive savings in overhead, I was able to fit Array#forty_two
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/array_ext_test.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb index 62a1f61d53..32cab2724b 100644 --- a/activesupport/test/core_ext/array_ext_test.rb +++ b/activesupport/test/core_ext/array_ext_test.rb @@ -15,17 +15,13 @@ class ArrayExtAccessTests < Test::Unit::TestCase end def test_second_through_tenth - array = (1..10).to_a + array = (1..42).to_a assert_equal array[1], array.second assert_equal array[2], array.third assert_equal array[3], array.fourth assert_equal array[4], array.fifth - assert_equal array[5], array.sixth - assert_equal array[6], array.seventh - assert_equal array[7], array.eighth - assert_equal array[8], array.ninth - assert_equal array[9], array.tenth + assert_equal array[41], array.fourty_two end end |