spec/formatting/binary/integer_spec.rb in ronin-0.2.4 vs spec/formatting/binary/integer_spec.rb in ronin-0.3.0
- old
+ new
@@ -122,6 +122,10 @@
describe "hex_escape" do
it "should hex escape an Integer" do
42.hex_escape.should == "\\x2a"
end
end
+
+ it "should alias char to the #chr method" do
+ 0x41.char.should == 'A'
+ end
end