File: en.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 (50 lines) | stat: -rw-r--r-- 1,522 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
local s = require('say')

s:set_namespace('en')

-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', 'Pending')
s:set('output.failure', 'Failure')
s:set('output.error', 'Error')
s:set('output.success', 'Success')

s:set('output.pending_plural', 'pending')
s:set('output.failure_plural', 'failures')
s:set('output.error_plural', 'errors')
s:set('output.success_plural', 'successes')

s:set('output.pending_zero', 'pending')
s:set('output.failure_zero', 'failures')
s:set('output.error_zero', 'errors')
s:set('output.success_zero', 'successes')

s:set('output.pending_single', 'pending')
s:set('output.failure_single', 'failure')
s:set('output.error_single', 'error')
s:set('output.success_single', 'success')

s:set('output.seconds', 'seconds')

s:set('output.no_test_files_match', 'No test files found matching Lua pattern: %s')
s:set('output.file_not_found', 'Cannot find file or directory: %s')

-- definitions following are not used within the 'say' namespace
return {
  failure_messages = {
    'You have %d busted specs',
    'Your specs are busted',
    'Your code is bad and you should feel bad',
    'Your code is in the Danger Zone',
    'Strange game. The only way to win is not to test',
    'My grandmother wrote better specs on a 3 86',
    'Every time there\'s a failure, drink another beer',
    'Feels bad man'
  },
  success_messages = {
    'Aww yeah, passing specs',
    'Doesn\'t matter, had specs',
    'Feels good, man',
    'Great success',
    'Tests pass, drink another beer',
  }
}