File: expose_file2.lua

package info (click to toggle)
lua-busted 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 820 kB
  • sloc: sh: 198; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
describe('Tests environment exposed from previous file', function()
  it('global environment still has "List"', function()
    assert.is_nil(_G.pl)
    assert.is_not_nil(pl)  --luacheck: ignore
    assert.is_equal('this global is in _G', _G.global_var)
    assert.is_not_nil(List)  --luacheck: ignore
  end)

  it('global environment still has "pl" packages loaded', function()
    assert.is_not_nil(package.loaded['pl'])
    assert.is_not_nil(package.loaded['pl.List'])
  end)
end)