summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-30 17:12:14 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-30 17:12:14 -0700
commit69037516509239cc9f700265b1579ccd92eafead (patch)
treeeaf06f745ea459697f7dfbc24cf956136c9e302e /test
parentaeda4bb2ae215a67f862edb36f52f50358258278 (diff)
downloadpsych-69037516509239cc9f700265b1579ccd92eafead.zip
ranges round trip
Diffstat (limited to 'test')
-rw-r--r--test/visitors/test_yast_builder.rb8
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)