Sha256: 7181ab56efa2a2adb2592145ad03ea18bd4f169f9bb01e6f3e61d623b549bf6c

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

# encoding: UTF-8
require 'coveralls'
Coveralls.wear!

require 'test/unit'
require 'hola'

class HolaTest < Test::Unit::TestCase
  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

  def test_dutch_hello
    assert_equal "hallo wereld", Hola.hi("dutch")
  end
  
  def test_korean_hello
    assert_equal "anyoung ha se yo", Hola.hi("korean")
  end
  
  def test_polish_hello
    assert_equal "witaj świecie", Hola.hi("polish")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hola-ianh-0.0.4 test/test_hola.rb