exercism/lua/hello-world/hello-world_test.lua
2016-08-13 18:20:14 -05:00

20 lines
497 B
Lua

local HelloWorld = require('hello_world')
describe('Hello World', function()
it('says hello world with no name', function()
local result = HelloWorld.hello()
assert.are.equals('Hello, world!', result)
end)
it('says hello to Bob', function()
local result = HelloWorld.hello('Bob')
assert.are.equals('Hello, Bob!', result)
end)
it('says hello to Sally', function()
local result = HelloWorld.hello('Sally')
assert.are.equals('Hello, Sally!', result)
end)
end)