File: posix_version_spec.yaml

package info (click to toggle)
lua-posix 36.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,720 kB
  • sloc: ansic: 5,462; makefile: 21; sh: 6
file content (20 lines) | stat: -rw-r--r-- 461 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
before:
  this_module = 'posix.version'
  global_table = '_G'

  M = require(this_module)


specify posix.version:
- context when required:
  - it does not touch the global table:
      expect(show_apis {added_to=global_table, by=this_module}).
         to_equal {}


- it is set:
    expect(M).not_to_be(nil)
- it describes this module:
    expect(M).to_match '^posix '
- it ends with the release number:
    expect(M).to_match.any_of {' %d[%.%d]*$', ' git$'}