Skip to content

Commit c5b85bf

Browse files
committed
Use hexdecimal notation in Socket.gethostbyname spec
1 parent 1adc87b commit c5b85bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/ruby/library/socket/socket/gethostbyname_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
require_relative '../spec_helper'
33
require_relative '../fixtures/classes'
44

5-
describe "Socket#gethostbyname" do
5+
describe "Socket.gethostbyname" do
66
it "returns broadcast address info for '<broadcast>'" do
77
addr = Socket.gethostbyname('<broadcast>');
8-
addr.should == ["255.255.255.255", [], 2, "\377\377\377\377"]
8+
addr.should == ["255.255.255.255", [], 2, "\xFF\xFF\xFF\xFF"]
99
end
1010

1111
it "returns broadcast address info for '<any>'" do
1212
addr = Socket.gethostbyname('<any>');
13-
addr.should == ["0.0.0.0", [], 2, "\000\000\000\000"]
13+
addr.should == ["0.0.0.0", [], 2, "\x00\x00\x00\x00"]
1414
end
1515
end
1616

0 commit comments

Comments
 (0)