Sha256: aa29d6eb0f4429156e0290f7884a2c267382ce92fc32a2f33ba850f4d390a4d8
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require 'minitest/autorun' require 'storazzo' class StorazzoTest < Minitest::Test def test_storazzo_hi_with_argument assert_match 'Hello from Storazzo', Storazzo::Main.say_hi('ruby this should fail') assert_match 'ruby this should fail', Storazzo::Main.say_hi('ruby this should fail') end # def test_storazzo_hi_without_argument # assert_match "Hello from Storazzo", Storazzo::Main.say_hi() # end # def test_storazzo_version_should_have_3_numbers_and_2_dots # # puts Storazzo::version # assert_equal Storazzo::version.split('.').size , 3, "should be 3 parts, like A.B.C" # #major, minor, minuscule = Storazzo::VERSION.split('.') # # assert_match Storazzo::VERSION, "....." # end # # def test_english_hello # # assert_equal "hello world", # # Hola.hi("english") # # end # # def test_any_hello # # assert_equal "hello world", # # Hola.hi("ruby") # # end # # def test_spanish_hello # # assert_equal "hola mundo", # # Hola.hi("spanish") # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storazzo-0.6.1 | test/test_storazzo.rb |