~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/psych/visitors/test_emitter.rb

  • Committer: Package Import Robot
  • Author(s): Antonio Terceiro, Lucas Nussbaum, Daigo Moriwaki, James Healy, Antonio Terceiro
  • Date: 2012-06-02 07:42:28 UTC
  • mfrom: (21.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120602074228-09t2jgg1ozrsnnfo
Tags: 1.9.3.194-1
[ Lucas Nussbaum ]
* Add hurd-path-max.diff. Fixes FTBFS on Hurd. (Closes: #648055)

[ Daigo Moriwaki ]
* Removed debian/patches/debian/patches/sparc-continuations.diff,
  which the upstream has applied.
* debian/rules:
  - Bumped up tcltk_ver to 8.5.
  - Used chrpath for tcltklib.so to fix a lintian error,
    binary-or-shlib-defines-rpath.
* debian/control:
  - Suggests ruby-switch. (Closes: #654312)
  - Build-Depends: chrpath.
* debian/libruby1.9.1.symbols: Added a new symbol for
  rb_str_modify_expand@Base.
* debian/run-test-suites.bash:
  - Corrected options for test-all.
  - Enabled timeout to allow hang tests to be aborted.

[ James Healy ]
* New upstream release: 1.9.3p194 (Closes: #669582)
  + This release includes a fix for CVE-2011-0188 (Closes: #628451)
  + This release also does not segfault when running the test suite under
    amd64 (Closes: #674347)
* Enable hardened build flags (Closes: #667964)
* debian/control:
  - depend on specific version on coreutils
  - update policy version (no changes)

[ Antonio Terceiro ]
* debian/ruby1.9.1.postinst:
  + bump alternatives priority for `ruby` to 51 so that Ruby 1.9 has a
    higher priority than Ruby 1.8 (50).
  + bump alternatives priority for `gem` to 181 so that the Rubygems
    provided by Ruby 1.9 has priority over the one provided by the rubygems
    package.
* debian/control: added myself to Uploaders:
* debian/libruby1.9.1.symbols: update with new symbols added in 1.9.3p194
  upstream release.
* debian/manpages/*: fix references to command names with s/1.9/1.9.1/
* debian/rules: skip running DRB tests, since they seem to make the build
  hang. This should close #647296, but let's way and see. Also, with this do
  not need to timeout the test suite anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        @visitor.accept s
47
47
 
48
48
        assert_match(/1.1/, @io.string)
49
 
        assert_equal @io.string, s.to_yaml
 
49
        assert_equal @io.string, s.yaml
50
50
      end
51
51
 
52
52
      def test_document_implicit_end
61
61
        @visitor.accept s
62
62
 
63
63
        assert_match(/key: value/, @io.string)
64
 
        assert_equal @io.string, s.to_yaml
65
 
        assert(/\.\.\./ !~ s.to_yaml)
 
64
        assert_equal @io.string, s.yaml
 
65
        assert(/\.\.\./ !~ s.yaml)
66
66
      end
67
67
 
68
68
      def test_scalar
76
76
        @visitor.accept s
77
77
 
78
78
        assert_match(/hello/, @io.string)
79
 
        assert_equal @io.string, s.to_yaml
 
79
        assert_equal @io.string, s.yaml
80
80
      end
81
81
 
82
82
      def test_scalar_with_tag
91
91
 
92
92
        assert_match(/str/, @io.string)
93
93
        assert_match(/hello/, @io.string)
94
 
        assert_equal @io.string, s.to_yaml
 
94
        assert_equal @io.string, s.yaml
95
95
      end
96
96
 
97
97
      def test_sequence
107
107
        @visitor.accept s
108
108
 
109
109
        assert_match(/- hello/, @io.string)
110
 
        assert_equal @io.string, s.to_yaml
 
110
        assert_equal @io.string, s.yaml
111
111
      end
112
112
 
113
113
      def test_mapping
122
122
        @visitor.accept s
123
123
 
124
124
        assert_match(/key: value/, @io.string)
125
 
        assert_equal @io.string, s.to_yaml
 
125
        assert_equal @io.string, s.yaml
126
126
      end
127
127
 
128
128
      def test_alias
137
137
        @visitor.accept s
138
138
 
139
139
        assert_match(/&A key: \*A/, @io.string)
140
 
        assert_equal @io.string, s.to_yaml
 
140
        assert_equal @io.string, s.yaml
141
141
      end
142
142
    end
143
143
  end