diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-30 17:12:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-30 17:12:14 -0700 |
commit | 69037516509239cc9f700265b1579ccd92eafead (patch) | |
tree | eaf06f745ea459697f7dfbc24cf956136c9e302e /test | |
parent | aeda4bb2ae215a67f862edb36f52f50358258278 (diff) | |
download | psych-69037516509239cc9f700265b1579ccd92eafead.zip |
ranges round trip
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_yast_builder.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb index 9d2945b..ec74462 100644 --- a/test/visitors/test_yast_builder.rb +++ b/test/visitors/test_yast_builder.rb @@ -33,6 +33,14 @@ module Psych assert_round_trip 'false' end + def test_range_inclusive + assert_round_trip 1..2 + end + + def test_range_exclusive + assert_round_trip 1...2 + end + def test_binary string = [0, 123,22, 44, 9, 32, 34, 39].pack('C*') assert_equal string, Psych.load(string.to_yaml) |