greet = "Hello Ruby!" print greet, "\n" puts greet $stdout.write greet +"\n" $stdout.puts greet $stdout.print greet, "\n" (greet+"\n").each_char {|c| print c}
- greet = "Hello Ruby!"
- print greet, "\n"
- puts greet
- $stdout.write greet +"\n"
- $stdout.puts greet
$stdout.print greet, ""- $stdout.print greet, "
- "
- (greet+"\n").each_char {|c| print c}
# TODO: TDD development by writing your own tests as you solve the kata. # These are some of the methods available: # Test.expect(boolean, [optional] message) # Test.assert_equals(actual, expected, [optional] message) # Test.assert_not_equals(actual, expected, [optional] message) #describe "Solution" do # it "should test for something" do # Test.assert_equals("actual", "expected") # end #end
- # TODO: TDD development by writing your own tests as you solve the kata.
- # These are some of the methods available:
- # Test.expect(boolean, [optional] message)
- # Test.assert_equals(actual, expected, [optional] message)
- # Test.assert_not_equals(actual, expected, [optional] message)
- #describe "Solution" do
- # it "should test for something" do
- # Test.assert_equals("actual", "expected")
- # end
- #end