mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
* ext/psych/emitter.c (line_width, set_line_width): preferred line may
be set on the emitter. * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto * test/psych/test_emitter.rb: corresponding tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74d40e4196
commit
ba9a959a18
4 changed files with 42 additions and 1 deletions
|
@ -10,6 +10,12 @@ module Psych
|
|||
@emitter = Psych::Emitter.new @out
|
||||
end
|
||||
|
||||
def test_line_width
|
||||
assert_equal 0, @emitter.line_width
|
||||
assert_equal 10, @emitter.line_width = 10
|
||||
assert_equal 10, @emitter.line_width
|
||||
end
|
||||
|
||||
def test_set_canonical
|
||||
@emitter.canonical = true
|
||||
assert_equal true, @emitter.canonical
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue