summaryrefslogtreecommitdiff
path: root/test/visitors/test_yast_builder.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-10-05 11:08:19 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-10-05 11:08:19 -0700
commit3027b4d69c2fe2e3f4f254e102af3834fddff2f6 (patch)
tree5125565c50a2e63f1819ddaae1798aeaf4618057 /test/visitors/test_yast_builder.rb
parent81929a6aa2b6d26958401e67b83019e31275ef5c (diff)
downloadpsych-3027b4d69c2fe2e3f4f254e102af3834fddff2f6.zip
rationals supported
Diffstat (limited to 'test/visitors/test_yast_builder.rb')
-rw-r--r--test/visitors/test_yast_builder.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/visitors/test_yast_builder.rb b/test/visitors/test_yast_builder.rb
index 6681575..f5423e9 100644
--- a/test/visitors/test_yast_builder.rb
+++ b/test/visitors/test_yast_builder.rb
@@ -8,6 +8,10 @@ module Psych
@v = Visitors::YASTBuilder.new
end
+ def test_rational
+ assert_round_trip Rational(1,2)
+ end
+
def test_complex
assert_round_trip Complex(1,2)
end