diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-02-04 23:10:06 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-02-04 23:10:06 -0800 |
commit | 785d44b0e5cc477e8586b927d7125ebbc0964355 (patch) | |
tree | 248e5bd3a5263c777ff9542619b5398de1924db4 /test/yaml | |
parent | f2f75f3067611752cfe40b843515d0c73dd41cb6 (diff) | |
download | psych-785d44b0e5cc477e8586b927d7125ebbc0964355.zip |
not supporting ypath
Diffstat (limited to 'test/yaml')
-rw-r--r-- | test/yaml/test_yaml.rb | 28 |
1 files changed, 14 insertions, 14 deletions
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] |