Skip to content

Commit

Permalink
Convert a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Jul 15, 2023
1 parent 476e973 commit 5a927ef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

lr = luarocks --tree .luarocks

coverage: clean t
luacov src
@tail -n+$$(cat luacov.report.out | grep -m 1 -n 'Summary' | cut -d: -f 1) luacov.report.out | grep -v '100.00'

clean:
@rm -f luacov.*

Expand Down
13 changes: 13 additions & 0 deletions tests/test_utils.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local assert = require "luassert"

local utils = require "atlas.utils"

local tests = {}

-- Utils checks if a value is in a table
function tests.test_in_table()
assert.is_true(utils.in_table(1, {3, 2, 1}))
assert.is_false(utils.in_table(99, {3, 2, 1}))
end

return tests
12 changes: 0 additions & 12 deletions tests/utils_test.lua

This file was deleted.

0 comments on commit 5a927ef

Please sign in to comment.