From 785d44b0e5cc477e8586b927d7125ebbc0964355 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 4 Feb 2010 23:10:06 -0800 Subject: not supporting ypath --- test/yaml/test_yaml.rb | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'test/yaml') diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index f874500..3d4a608 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -38,12 +38,12 @@ class YAML_Unit_Tests < Test::Unit::TestCase assert_equal( obj, YAML::load( obj.to_yaml ) ) end - def assert_path_segments( path, segments ) - YAML::YPath.each_path( path ) { |choice| - assert_equal( choice.segments, segments.shift ) - } - assert_equal( segments.length, 0, "Some segments leftover: #{ segments.inspect }" ) - end + #def assert_path_segments( path, segments ) + # YAML::YPath.each_path( path ) { |choice| + # assert_equal( choice.segments, segments.shift ) + # } + # assert_equal( segments.length, 0, "Some segments leftover: #{ segments.inspect }" ) + #end # # Make a time with the time zone @@ -1171,14 +1171,14 @@ EOY # # Test YPath choices parsing # - def test_ypath_parsing - assert_path_segments( "/*/((one|three)/name|place)|//place", - [ ["*", "one", "name"], - ["*", "three", "name"], - ["*", "place"], - ["/", "place"] ] - ) - end + #def test_ypath_parsing + # assert_path_segments( "/*/((one|three)/name|place)|//place", + # [ ["*", "one", "name"], + # ["*", "three", "name"], + # ["*", "place"], + # ["/", "place"] ] + # ) + #end # # Tests from Tanaka Akira on [ruby-core] -- cgit v1.2.3