require_relative '../spec_helper' describe "Addrinfo#ipv6_loopback?" do describe "for an ipv4 socket" do before :each do @loopback = Addrinfo.tcp("127.0.0.1", 80) @other = Addrinfo.tcp("0.0.0.0", 80) end it "returns false for the loopback address" do @loopback.ipv6_loopback?.should be_false end it "returns false for another address" do @other.ipv6_loopback?.should be_false end end describe "for an ipv6 socket" do before :each do @loopback = Addrinfo.tcp("::1", 80) @other = Addrinfo.tcp("::", 80) end it "returns true for the loopback address" do @loopback.ipv6_loopback?.should be_true end it "returns false for another address" do @other.ipv6_loopback?.should be_false end end with_feature :unix_socket do describe "for a unix socket" do before :each do @addrinfo = Addrinfo.unix("/tmp/sock") end it "returns false" do @addrinfo.ipv6_loopback?.should be_false end end end end by_1_9_1'>ruby_1_9_1 The Ruby Programming Language
summaryrefslogtreecommitdiff
path: root/test/ruby/test_marshal.rb
AgeCommit message (Expand)Author
2021-10-09merge revision(s) 89242279e61b023a81c58065c62a82de8829d0b3,529fc204af84f825f9...nagachika
2021-10-03merge revision(s) 7c0230b05d0978958f89434c84ddd9c82419c1a5,552728a23aeab0df59...nagachika
2020-12-17test/ruby: Check warning messages at a finer granularityNobuyoshi Nakada
2020-09-06Make it possible to dump and load an exception objectYusuke Endoh
2020-01-28support multi-run for test/ruby/test_marshal.rbKoichi Sasada
2020-01-17marshal.c: Support dump and load of a Hash with the ruby2_keywords flagYusuke Endoh
2020-01-02Update tests for full keyword argument separationJeremy Evans
2019-11-18Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans
2019-07-01marshal.c: check instance variable countNobuyoshi Nakada
2019-07-01marshal.c: check instance variable countNobuyoshi Nakada
2018-01-05marshal.c: allow marshalling keyword_init structk0kubun
2017-12-12Add FrozenError as a subclass of RuntimeErrorshyouhei
2017-04-06Rename RbConfig::Limits as RbConfig::LIMITSnobu
2017-03-02test: use RbConfig::Limitsnobu
2017-02-15marshal.c: revert r57631 partiallynobu
2016-11-24marshal.c: fix infinite recursionnobu