File: cl_errors.lua

package info (click to toggle)
lua-busted 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 820 kB
  • sloc: sh: 198; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- supporting testfile; belongs to 'cl_spec.lua'

describe('Tests the busted error detection through the commandline', function()

  it('is a test that throws an error #testerr', function()
    error('force an error')
  end)

  it('is a test with a Lua error #luaerr', function()
    local foo      --luacheck: ignore
    foo.bar = nil  --luacheck: ignore
  end)
end)