File: zh.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 (43 lines) | stat: -rw-r--r-- 1,233 bytes parent folder | download | duplicates (4)
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
local s = require('say')

s:set_namespace('zh')

-- 'Pending: test.lua @ 12 \n description
s:set('output.pending', '开发中')
s:set('output.failure', '失败')
s:set('output.success', '成功')

s:set('output.pending_plural', '开发中')
s:set('output.failure_plural', '失败')
s:set('output.success_plural', '成功')

s:set('output.pending_zero', '开发中')
s:set('output.failure_zero', '失败')
s:set('output.success_zero', '成功')

s:set('output.pending_single', '开发中')
s:set('output.failure_single', '失败')
s:set('output.success_single', '成功')

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

-- definitions following are not used within the 'say' namespace
return {
  failure_messages = {
    '你一共提交了[%d]个测试用例',
    '又出错了!',
    '到底哪里不对呢?',
    '出错了,又要加班了!',
    '囧,出Bug了!',
    '据说比尔盖兹也写了一堆Bug,别灰心!',
    '又出错了,休息一下吧',
    'Bug好多,心情好坏!'
  },
  success_messages = {
    '牛X,测试通过了!',
    '测试通过了,感觉不错吧,兄弟!',
    '哥们,干得漂亮!',
    '终于通过了!干一杯先!',
    '阿弥陀佛~,菩萨显灵了!',
  }
}