exercism/lua/hello-world/hello-world_spec.lua

20 lines
497 B
Lua
Raw Normal View History

2016-08-13 23:20:14 +00:00
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)