mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/monitor/test_monitor.rb: remove unused variabels.
* test/resolv/test_dns.rb: ditto. * test/rexml/test_functions.rb: ditto. * test/rss/test_setup_maker_itunes.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d691a28d91
commit
5691727653
5 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Fri Feb 21 10:39:33 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
|
* test/monitor/test_monitor.rb: remove unused variabels.
|
||||||
|
* test/resolv/test_dns.rb: ditto.
|
||||||
|
* test/rexml/test_functions.rb: ditto.
|
||||||
|
* test/rss/test_setup_maker_itunes.rb: ditto.
|
||||||
|
|
||||||
Fri Feb 21 09:48:56 2014 Eric Wong <e@80x24.org>
|
Fri Feb 21 09:48:56 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
|
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
|
||||||
|
|
|
@ -83,7 +83,7 @@ class TestMonitor < Test::Unit::TestCase
|
||||||
def test_try_enter
|
def test_try_enter
|
||||||
queue1 = Queue.new
|
queue1 = Queue.new
|
||||||
queue2 = Queue.new
|
queue2 = Queue.new
|
||||||
th = Thread.start {
|
Thread.start {
|
||||||
queue1.deq
|
queue1.deq
|
||||||
@monitor.enter
|
@monitor.enter
|
||||||
queue2.enq(nil)
|
queue2.enq(nil)
|
||||||
|
|
|
@ -38,7 +38,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
||||||
dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A)
|
dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msg, (af, client_port, _, client_address) = u.recvfrom(4096)
|
msg, (_, client_port, _, client_address) = u.recvfrom(4096)
|
||||||
id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn")
|
id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn")
|
||||||
qr = (word2 & 0x8000) >> 15
|
qr = (word2 & 0x8000) >> 15
|
||||||
opcode = (word2 & 0x7800) >> 11
|
opcode = (word2 & 0x7800) >> 11
|
||||||
|
@ -65,7 +65,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
||||||
assert_operator(rest, :start_with?, name)
|
assert_operator(rest, :start_with?, name)
|
||||||
rest = rest[name.length..-1]
|
rest = rest[name.length..-1]
|
||||||
assert_equal(4, rest.length)
|
assert_equal(4, rest.length)
|
||||||
qtype, qclass = rest.unpack("nn")
|
qtype, _ = rest.unpack("nn")
|
||||||
assert_equal(1, qtype) # A
|
assert_equal(1, qtype) # A
|
||||||
assert_equal(1, qtype) # IN
|
assert_equal(1, qtype) # IN
|
||||||
id = id
|
id = id
|
||||||
|
|
|
@ -83,7 +83,6 @@ class FunctionsTester < Test::Unit::TestCase
|
||||||
# examples from http://www.w3.org/TR/xpath#function-substring
|
# examples from http://www.w3.org/TR/xpath#function-substring
|
||||||
doc = Document.new('<test string="12345" />')
|
doc = Document.new('<test string="12345" />')
|
||||||
|
|
||||||
d = Document.new("<a b='1'/>")
|
|
||||||
#puts XPath.first(d, 'node()[0 + 1]')
|
#puts XPath.first(d, 'node()[0 + 1]')
|
||||||
#d = Document.new("<a b='1'/>")
|
#d = Document.new("<a b='1'/>")
|
||||||
#puts XPath.first(d, 'a[0 mod 0]')
|
#puts XPath.first(d, 'a[0 mod 0]')
|
||||||
|
|
|
@ -13,7 +13,6 @@ module RSS
|
||||||
duration_components = [0, 4, 5]
|
duration_components = [0, 4, 5]
|
||||||
explicit = true
|
explicit = true
|
||||||
keywords = ["salt", "pepper", "shaker", "exciting"]
|
keywords = ["salt", "pepper", "shaker", "exciting"]
|
||||||
new_feed_url = "http://newlocation.com/example.rss"
|
|
||||||
owner = {:name => "John Doe", :email => "john.doe@example.com"}
|
owner = {:name => "John Doe", :email => "john.doe@example.com"}
|
||||||
subtitle = "A show about everything"
|
subtitle = "A show about everything"
|
||||||
summary = "All About Everything is a show about " +
|
summary = "All About Everything is a show about " +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue