Skip to content

Commit

Permalink
Some pushing around of files
Browse files Browse the repository at this point in the history
  • Loading branch information
HHHartmann committed Nov 7, 2020
1 parent 4d16176 commit c6c979b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion tests/NTest/NTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| :----- | :-------------------- | :---------- | :------ |
| 2020-11-01 | [Gregor Hartmann](https://github.com/HHHartmann) | [Gregor Hartmann](https://github.com/HHHartmann) | [NTest.lua](NTest.lua) |

NTest is a test system for NodeMCU which is originally based on gambiarra. It is designed to run on chip but also runs on the host using luac.cross.
NTest is a test system for NodeMCU which is originally based on gambiarra. It is designed to run on chip but the selftest also runs on the host using luac.cross.

!!! attention
You will have to use LFS to run this as it is too big to fit in memory.
Expand Down
File renamed without changes.
10 changes: 0 additions & 10 deletions tests/NTest/tests/file.lua → tests/NTest_file.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ local function cleanup()
end
end

local function buildfn(fn, ...)
local params = {...}
local fnp = function() fn(unpack(params)) end
return fnp
end

N.test('exist', function()
cleanup()
nok(file.exists("non existing file"), "non existing file")
Expand Down Expand Up @@ -170,8 +164,6 @@ N.test('open non existing', function()
testopen(nok, "testfile", "r+")
testopen(ok, "testfile", "w+")
testopen(ok, "testfile", "a+")

--fail(buildfn(file.open, "testfile"), "errormsg", "x") -- shouldn't this fail?
end)

N.test('open existing', function()
Expand All @@ -190,8 +182,6 @@ N.test('open existing', function()
testopen("r+", 0)
testopen("w+", 0)
testopen("a+", 11)

--fail(buildfn(file.open, "testfile"), "errormsg", "x") -- shouldn't this fail?
end)

N.test('remove', function()
Expand Down
File renamed without changes.

0 comments on commit c6c979b

Please sign in to comment.