diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-02-05 17:46:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-02-05 17:46:01 -0800 |
commit | ac8b4870f8088ca7003492aad293a3a7cfc92f33 (patch) | |
tree | 1f5960e76239d28d58a53225d511edbae617017e /test | |
parent | c635042e2a7de3beaafb498fb50af39f3b2a8dd5 (diff) | |
download | psych-ac8b4870f8088ca7003492aad293a3a7cfc92f33.zip |
canonical output may be set
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_emitter.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/psych/test_emitter.rb b/test/psych/test_emitter.rb index 6153088..08da654 100644 --- a/test/psych/test_emitter.rb +++ b/test/psych/test_emitter.rb @@ -11,6 +11,14 @@ module Psych @emitter = Psych::Emitter.new @out end + def test_set_canonical + @emitter.canonical = true + assert_equal true, @emitter.canonical + + @emitter.canonical = false + assert_equal false, @emitter.canonical + end + def test_emit_utf_8 @emitter.start_stream Psych::Nodes::Stream::UTF8 @emitter.start_document [], [], false |