Skip to content

Commit

Permalink
Specs 124 (104 successes, 0 failures, 20 pending)
Browse files Browse the repository at this point in the history
Examples 1187 (1000 successes, 0 failures, 187 pending)
Compile (1073 successes, 82 failures)
  • Loading branch information
maiha committed Jan 1, 2017
1 parent ca3182f commit 453813e
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 30 deletions.
1 change: 1 addition & 0 deletions doc/spec/cache
Expand Up @@ -117,3 +117,4 @@ a7d6f5844e53f8b3f16211da2d7d709dd128da62 1 gen/spec/indexable_spec.cr
15121858d21e974719385f7de7771a8411a4a156 1 gen/spec/regex_spec.cr
bdf2c8b5e1db0128b0488fe30aebf372bba5c36d 1 gen/spec/uri_spec.cr
7a0cd046e27350bcc195a5750bc8ae049051bfce 1 gen/spec/uri_spec.cr
b30dcc9a70533859d944c2156dbf90419a0f2c6d 1 gen/spec/xml/node_spec.cr
2 changes: 1 addition & 1 deletion doc/spec/example_cnt_ng
@@ -1 +1 @@
5
0
2 changes: 1 addition & 1 deletion doc/spec/example_cnt_ok
@@ -1 +1 @@
995
1000
2 changes: 1 addition & 1 deletion doc/spec/example_cnt_ok_all
@@ -1 +1 @@
1025
1030
24 changes: 1 addition & 23 deletions doc/spec/log
Expand Up @@ -94,29 +94,7 @@ OK: gen/spec/tuple_spec.cr (cached)
OK: gen/spec/unicode/unicode_spec.cr (cached)
OK: gen/spec/union_spec.cr (cached)
OK: gen/spec/uri_spec.cr (cached)
xml/node.cr
# xml/node.cr:450 (001.cr)
# xml/node.cr:462 (002.cr)
# xml/node.cr:471 (003.cr)
# xml/node.cr:482 (004.cr)
xml/node.cr

Failures:

1) xml/node.cr
 Failure/Error: ( doc.xpath_node("//person") ).class.to_s.should eq( "XML::Element" )

expected: "XML::Element"
 got: "XML::Node"

 # gen/spec/xml/node_spec.cr:21

Finished in 433 microseconds
1 examples, 1 failures, 0 errors, 0 pending

Failed examples:

crystal spec gen/spec/xml/node_spec.cr:3 # xml/node.cr
OK: gen/spec/xml/node_spec.cr (cached)
OK: gen/spec/xml/writer_spec.cr (cached)
OK: gen/spec/xml_spec.cr (cached)
OK: gen/spec/yaml/any_spec.cr (cached)
Expand Down
1 change: 0 additions & 1 deletion doc/spec/ng
@@ -1 +0,0 @@
gen/spec/xml/node_spec.cr
1 change: 1 addition & 0 deletions doc/spec/ok
Expand Up @@ -94,6 +94,7 @@ gen/spec/tuple_spec.cr
gen/spec/unicode/unicode_spec.cr
gen/spec/union_spec.cr
gen/spec/uri_spec.cr
gen/spec/xml/node_spec.cr
gen/spec/xml/writer_spec.cr
gen/spec/xml_spec.cr
gen/spec/yaml/any_spec.cr
Expand Down
2 changes: 1 addition & 1 deletion examples/xml/node/004.cr
@@ -1,4 +1,4 @@
# xml/node.cr:482
require "xml"
doc.xpath_node("//person") # => #<XML::Element:0x2013e80 name="person">
doc.xpath_node("//person") # => #<XML::Node:0x2013e80 name="person">
doc.xpath_node("//invalid") # => nil
2 changes: 1 addition & 1 deletion examples/xml/node/all.cr
Expand Up @@ -16,7 +16,7 @@ nodes.class # => XML::NodeSet
nodes.map(&.name) # => ["person"]

# xml/node.cr:482 (004.cr)
doc.xpath_node("//person") # => #<XML::Element:0x2013e80 name="person">
doc.xpath_node("//person") # => #<XML::Node:0x2013e80 name="person">
doc.xpath_node("//invalid") # => nil

# xml/node.cr:492 (005.cr)
Expand Down
2 changes: 1 addition & 1 deletion gen/spec/xml/node_spec.cr
Expand Up @@ -18,7 +18,7 @@ nodes = doc.xpath_nodes("//person")
( nodes.map(&.name) ).should eq( ["person"] )

puts "# xml/node.cr:482 (004.cr)" # :nocode: :example:
( doc.xpath_node("//person") ).class.to_s.should eq( "XML::Element" )
( doc.xpath_node("//person") ).class.to_s.should eq( "XML::Node" )
( doc.xpath_node("//invalid") ).should eq( nil )

puts "# xml/node.cr:492 (005.cr)" # :nocode: :example:
Expand Down

0 comments on commit 453813e

Please sign in to comment.