Created
February 2, 2009 15:02
-
-
Save cv/56936 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use("ispec") | |
describe("Java", | |
it("should create new methods on an object", | |
Java compileMethod(Text, :disemvowel, #[{ | |
return runtime.newText(Text.getText(on).replaceAll("a|e|i|o|u|A|E|I|O|U", "")); | |
}]) | |
"hello, world!" disemvowel should == "hll, wrld!" | |
) | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment