1local tasty = require 'tasty'
2local path = require 'pandoc.path'
4local assert = tasty.assert
5local test = tasty.test_case
6local group = tasty.test_group
9 group 'path separator' {
10 test('is string', function ()
11 assert.are_same(type(path.separator), 'string')
13 test('is slash or backslash', function ()
14 assert.is_truthy(path.separator:match '^[/\\]$')
17 group 'search path separator' {
18 test('is string', function ()
19 assert.are_same(type(path.search_path_separator), 'string')
21 test('is colon or semicolon', function ()
22 assert.is_truthy(path.search_path_separator:match '^[:;]$')
26 test('check function existence', function ()
39 for _, f in ipairs(functions) do
40 assert.are_equal(type(path[f]), 'function')
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list