summaryrefslogtreecommitdiff
path: root/test/visitors/test_to_ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_to_ruby.rb')
-rw-r--r--test/visitors/test_to_ruby.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_to_ruby.rb b/test/visitors/test_to_ruby.rb
index dcd4738..e5d6c9d 100644
--- a/test/visitors/test_to_ruby.rb
+++ b/test/visitors/test_to_ruby.rb
@@ -224,7 +224,7 @@ description:
# http://yaml.org/type/bool.html
def test_boolean_true
- %w{ y Y yes Yes YES true True TRUE on On ON }.each do |t|
+ %w{ yes Yes YES true True TRUE on On ON }.each do |t|
i = Nodes::Scalar.new(t, nil, 'tag:yaml.org,2002:bool')
assert_equal true, i.to_ruby
assert_equal true, Nodes::Scalar.new(t).to_ruby
@@ -233,7 +233,7 @@ description:
# http://yaml.org/type/bool.html
def test_boolean_false
- %w{ n N no No NO false False FALSE off Off OFF }.each do |t|
+ %w{ no No NO false False FALSE off Off OFF }.each do |t|
i = Nodes::Scalar.new(t, nil, 'tag:yaml.org,2002:bool')
assert_equal false, i.to_ruby
assert_equal false, Nodes::Scalar.new(t).to_ruby