-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make std_spec fails on b8a24e7d9 #14174
Comments
@femto What macOS version are you using? |
mac 12.4 |
is it possible to isolate the testcase that causes the failure? today running:
also why is uses ... outputs twice, |
I'm able to reproduce on Mac 14.2 as well. Seems related to |
Somewhat minimal example:
Example Coderequire "spec"
require "xml"
private def doc
XML.parse(%(\
<?xml version='1.0' encoding='UTF-8'?>
<people>
<person id="1">
<name>John</name>
</person>
<person id="2">
<name>Peter</name>
</person>
</people>
))
end
it "finds with variable binding (bool)" do
doc = XML.parse(%(\
<?xml version="1.0" encoding="UTF-8"?>
<feed>
<person id="1"/>
<person id="2"/>
</feed>
))
result = doc.xpath_bool("count(//feed/person[@id=$value]) = 1", variables: {"value" => 2})
result.should be_true
end
it "finds with variable binding (float)" do
doc = XML.parse(%(\
<?xml version="1.0" encoding="UTF-8"?>
<feed>
<person id="1"/>
<person id="2"/>
</feed>
))
result = doc.xpath_float("count(//feed/person[@id=$value])", variables: {"value" => 2})
result.should eq(1.0)
end
it "finds with variable binding (nodes)" do
doc = XML.parse(%(\
<?xml version="1.0" encoding="UTF-8"?>
<feed>
<person id="1"/>
<person id="2"/>
</feed>
))
nodes = doc.xpath_nodes("//feed/person[@id=$value]", variables: {"value" => 2})
nodes.size.should eq(1)
nodes[0]["id"].should eq("2")
end
it "finds with variable binding (node)" do
doc = XML.parse(%(\
<?xml version="1.0" encoding="UTF-8"?>
<feed>
<person id="1"/>
<person id="2"/>
</feed>
))
node = doc.xpath_node("//feed/person[@id=$value]", variables: {"value" => 2}).not_nil!
node["id"].should eq("2")
end
it "finds with variable binding (string)" do
doc = XML.parse(%(\
<?xml version="1.0" encoding="UTF-8"?>
<feed>
<person id="1"/>
<person id="2"/>
</feed>
))
result = doc.xpath_string("string(//feed/person[@id=$value]/@id)", variables: {"value" => 2})
result.should eq("2")
end
it "NodeSet#to_s" do
doc = doc()
doc.xpath("//people/person").to_s
end |
In my case brew had |
Bug Report
not sure whether this relevant:
it outputs twice uses ... and gives ld warning
The text was updated successfully, but these errors were encountered: