@@ -617,11 +617,11 @@ def test_spec_domain_prefix
617617 raise ArgumentError , "Not a Hash in domain.tld,2002/invoice: " + val . inspect
618618 end
619619 }
620- Psych . add_domain_type ( "domain.tld, 2002" , 'invoice' , &customer_proc )
621- Psych . add_domain_type ( "domain.tld, 2002" , 'customer' , &customer_proc )
620+ Psych . add_domain_type ( "domain.tld/ 2002" , 'invoice' , &customer_proc )
621+ Psych . add_domain_type ( "domain.tld/ 2002" , 'customer' , &customer_proc )
622622 assert_parse_only ( { "invoice" => { "customers" => [ { "given" => "Chris" , "type" => "domain customer" , "family" => "Dumars" } ] , "type" => "domain invoice" } } , <<EOY
623623# 'http://domain.tld,2002/invoice' is some type family.
624- invoice: !domain.tld,2002/ invoice
624+ invoice: !domain.tld/2002: invoice
625625 # 'seq' is shorthand for 'http://yaml.org/seq'.
626626 # This does not effect '^customer' below
627627 # because it is does not specify a prefix.
@@ -705,7 +705,7 @@ def test_spec_override_anchor
705705 end
706706
707707 def test_spec_explicit_families
708- Psych . add_domain_type ( "somewhere.com, 2002" , 'type' ) { |type , val |
708+ Psych . add_domain_type ( "somewhere.com/ 2002" , 'type' ) { |type , val |
709709 "SOMEWHERE: #{ val } "
710710 }
711711 assert_parse_only (
@@ -717,7 +717,7 @@ def test_spec_explicit_families
717717 Pz7Y6OjuDg4J+fn5OTk6enp
718718 56enmleECcgggoBADs=
719719
720- hmm: !somewhere.com,2002/ type |
720+ hmm: !somewhere.com/2002: type |
721721 family above is short for
722722 http://somewhere.com/type
723723EOY
@@ -726,7 +726,7 @@ def test_spec_explicit_families
726726
727727 def test_spec_application_family
728728 # Testing the clarkevans.com graphs
729- Psych . add_domain_type ( "clarkevans.com, 2002" , 'graph/shape' ) { |type , val |
729+ Psych . add_domain_type ( "clarkevans.com/ 2002" , 'graph/shape' ) { |type , val |
730730 if Array === val
731731 val << "Shape Container"
732732 val
@@ -743,13 +743,13 @@ def test_spec_application_family
743743 raise ArgumentError , "Invalid graph of type #{ val . class } : " + val . inspect
744744 end
745745 }
746- Psych . add_domain_type ( "clarkevans.com, 2002" , 'graph/circle' , &one_shape_proc )
747- Psych . add_domain_type ( "clarkevans.com, 2002" , 'graph/line' , &one_shape_proc )
748- Psych . add_domain_type ( "clarkevans.com, 2002" , 'graph/text' , &one_shape_proc )
746+ Psych . add_domain_type ( "clarkevans.com/ 2002" , 'graph/circle' , &one_shape_proc )
747+ Psych . add_domain_type ( "clarkevans.com/ 2002" , 'graph/line' , &one_shape_proc )
748+ Psych . add_domain_type ( "clarkevans.com/ 2002" , 'graph/text' , &one_shape_proc )
749749 # MODIFIED to remove invalid Psych
750750 assert_parse_only (
751751 [ [ { "radius" => 7 , "center" => { "x" => 73 , "y" => 129 } , "TYPE" => "Shape: graph/circle" } , { "finish" => { "x" => 89 , "y" => 102 } , "TYPE" => "Shape: graph/line" , "start" => { "x" => 73 , "y" => 129 } } , { "TYPE" => "Shape: graph/text" , "value" => "Pretty vector drawing." , "start" => { "x" => 73 , "y" => 129 } , "color" => 16772795 } , "Shape Container" ] ] , <<EOY
752- - !clarkevans.com,2002/ graph/shape
752+ - !clarkevans.com/2002: graph/shape
753753 - !/graph/circle
754754 center: &ORIGIN {x: 73, y: 129}
755755 radius: 7
@@ -771,8 +771,8 @@ def test_spec_float_explicit
771771# have the same type and value.
772772- 10.0
773773- !float 10
774- - !yaml.org, 2002/float '10'
775- - !yaml.org, 2002/float "\\
774+ - !yaml.org/ 2002/float '10'
775+ - !yaml.org/ 2002/float "\\
776776 1\\
777777 0"
778778EOY
0 commit comments