Skip to content

Instantly share code, notes, and snippets.

@harukizaemon
Created October 19, 2009 04:47
Show Gist options
  • Select an option

  • Save harukizaemon/213080 to your computer and use it in GitHub Desktop.

Select an option

Save harukizaemon/213080 to your computer and use it in GitHub Desktop.
ruby_version_is "" ... "1.8.7" do
it "accepts a sequence of underscores as part of a number" do
"a__b".hex.should == 0xab
"a____b".hex.should == 0xab
"a___f".hex.should == 0xaf
end
end
ruby_version_is "1.8.7" do
it "does not accept a sequence of underscores as part of a number" do
"a__b".hex.should == 0xa
"a____b".hex.should == 0xa
"a___f".hex.should == 0xa
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment