@@ -617,11 +617,11 @@ def test_spec_domain_prefix
617
617
raise ArgumentError , "Not a Hash in domain.tld,2002/invoice: " + val . inspect
618
618
end
619
619
}
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 )
622
622
assert_parse_only ( { "invoice" => { "customers" => [ { "given" => "Chris" , "type" => "domain customer" , "family" => "Dumars" } ] , "type" => "domain invoice" } } , <<EOY
623
623
# 'http://domain.tld,2002/invoice' is some type family.
624
- invoice: !domain.tld,2002/ invoice
624
+ invoice: !domain.tld/2002: invoice
625
625
# 'seq' is shorthand for 'http://yaml.org/seq'.
626
626
# This does not effect '^customer' below
627
627
# because it is does not specify a prefix.
@@ -705,7 +705,7 @@ def test_spec_override_anchor
705
705
end
706
706
707
707
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 |
709
709
"SOMEWHERE: #{ val } "
710
710
}
711
711
assert_parse_only (
@@ -717,7 +717,7 @@ def test_spec_explicit_families
717
717
Pz7Y6OjuDg4J+fn5OTk6enp
718
718
56enmleECcgggoBADs=
719
719
720
- hmm: !somewhere.com,2002/ type |
720
+ hmm: !somewhere.com/2002: type |
721
721
family above is short for
722
722
http://somewhere.com/type
723
723
EOY
@@ -726,7 +726,7 @@ def test_spec_explicit_families
726
726
727
727
def test_spec_application_family
728
728
# 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 |
730
730
if Array === val
731
731
val << "Shape Container"
732
732
val
@@ -743,13 +743,13 @@ def test_spec_application_family
743
743
raise ArgumentError , "Invalid graph of type #{ val . class } : " + val . inspect
744
744
end
745
745
}
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 )
749
749
# MODIFIED to remove invalid Psych
750
750
assert_parse_only (
751
751
[ [ { "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
753
753
- !/graph/circle
754
754
center: &ORIGIN {x: 73, y: 129}
755
755
radius: 7
@@ -771,8 +771,8 @@ def test_spec_float_explicit
771
771
# have the same type and value.
772
772
- 10.0
773
773
- !float 10
774
- - !yaml.org, 2002/float '10'
775
- - !yaml.org, 2002/float "\\
774
+ - !yaml.org/ 2002/float '10'
775
+ - !yaml.org/ 2002/float "\\
776
776
1\\
777
777
0"
778
778
EOY
0 commit comments