Skip to main content

Busted

Basic Setup

Solution

return function(a, b)
  return a + b
end
return function(a, b)
  return a + b
end

Tests

local add = require "solution"

describe("add", function()
  it("should add numbers", function()
    assert.are.same(2, add(1, 1))
  end)
end)
local add = require "solution"

describe("add", function()
  it("should add numbers", function()
    assert.are.same(2, add(1, 1))
  end)
end)