~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to bootstraptest/test_literal.rb

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
assert_equal '1',               'a = [obj = Object.new]; a.size'
113
113
assert_equal 'true',            'a = [obj = Object.new]; a[0] == obj'
114
114
assert_equal '5',               'a = [1,2,3]; a[1] = 5; a[1]'
 
115
assert_equal 'bar',             '[*:foo];:bar'
 
116
assert_equal '[1, 2]',          'def nil.to_splat; [2]; end; [1, *nil]'
 
117
assert_equal '[1, 2]',          'def nil.to_splat; [1, 2]; end; [*nil]'
 
118
assert_equal '[0, 1, {2=>3}]',  '[0, *[1], 2=>3]', "[ruby-dev:31592]"
 
119
 
115
120
 
116
121
# hash
117
122
assert_equal 'Hash',            '{}.class'