Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending to it #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions c-gaps/spec.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
describe("gaps (implementation)", function()
pending("loads module", function()
it("loads module", function()
local f = require 'gaps'
end)

pending("doesn't change good alignment", function()
it("doesn't change good alignment", function()
local f = require 'gaps'
assert.same({}, f({}))
assert.same({''}, f({''}))
Expand All @@ -14,7 +14,7 @@ describe("gaps (implementation)", function()
assert.same({'A'}, f({'A-'}))
end)

pending("removes gap columns", function()
it("removes gap columns", function()
local f = require 'gaps'
assert.same({''}, f({'-'}))
assert.same({'', ''}, f({'-', '-'}))
Expand All @@ -30,7 +30,7 @@ describe("gaps (implementation)", function()
}))
end)

pending("throws error if input is not table",
it("throws error if input is not table",
function()
local f = require 'gaps'
assert.has_error(function()
Expand All @@ -41,15 +41,15 @@ describe("gaps (implementation)", function()
end)
end)

pending("throws error if table members are not strings",
it("throws error if table members are not strings",
function()
local f = require 'gaps'
assert.has_error(function()
f({{1,2,3}, {}})
end)
end)

pending("throws error if strings' lengths differ",
it("throws error if strings' lengths differ",
function()
local f = require 'gaps'
assert.has_error(function()
Expand Down