@@ -21,19 +21,19 @@ test('check: shiritori', async t => {
21
21
22
22
test ( 'check: ends with ん' , async t => {
23
23
await t . throwsAsync ( shiritori . check ( 'とん' , [ 'べんと' ] ) ,
24
- / ん / )
24
+ / ん / )
25
25
await t . throwsAsync ( shiritori . check ( 'トン' , [ 'べんと' ] ) ,
26
- / ん / )
26
+ / ん / )
27
27
} )
28
28
29
29
test ( 'check: already used' , async t => {
30
30
await t . throwsAsync ( shiritori . check ( 'とんかつ' , [ 'べんと' , 'トンカツ' ] ) ,
31
- / a l r e a d y u s e d / )
31
+ / a l r e a d y u s e d / )
32
32
} )
33
33
34
34
test ( 'check: not shiritori' , async t => {
35
35
await t . throwsAsync ( shiritori . check ( 'とんかつ' , [ 'エビフライ' ] ) ,
36
- / d o e s n o t m a t c h / )
36
+ / d o e s n o t m a t c h / )
37
37
} )
38
38
39
39
test ( 'check: ー rules' , async t => {
@@ -44,7 +44,7 @@ test('check: ー rules', async t => {
44
44
t . true ( await shiritori . check ( 'あり' , [ 'りかー' ] ) )
45
45
t . true ( await shiritori . check ( '田んぼ' , [ 'スプリンター' ] ) )
46
46
await t . throwsAsync ( shiritori . check ( 'とんかつ' , [ 'りかー' ] ) ,
47
- / d o e s n o t m a t c h / )
47
+ / d o e s n o t m a t c h / )
48
48
} )
49
49
50
50
test ( 'check: ぁぃぅぇぉゃゅょ rules' , async t => {
@@ -92,28 +92,28 @@ test('interact: next', async t => {
92
92
93
93
test ( 'interact: lose' , async t => {
94
94
await t . throwsAsync ( shiritori . interact ( dict , 'つと' , [ 'とつ' , 'つと' ] ) ,
95
- { instanceOf : shiritori . Bad ,
96
- message : / a l r e a d y u s e d / } )
95
+ { instanceOf : shiritori . Bad ,
96
+ message : / a l r e a d y u s e d / } )
97
97
} )
98
98
99
99
test ( 'interact: win without result' , async t => {
100
100
await t . throwsAsync ( shiritori . interact ( dict , 'つと' , [ 'とんかつ' , 'べんと' ] ) ,
101
- { instanceOf : shiritori . Win } )
101
+ { instanceOf : shiritori . Win } )
102
102
} )
103
103
104
104
test ( 'interact: win with result' , async t => {
105
105
await t . throwsAsync ( shiritori . interact ( dict , 'とんかつ' , [ 'べんと' ] ) ,
106
- { instanceOf : shiritori . Win } )
106
+ { instanceOf : shiritori . Win } )
107
107
} )
108
108
109
109
test ( 'interact: win with ん' , async t => {
110
110
await t . throwsAsync ( shiritori . interact ( dict , '銀座' , [ '鰻' ] ) ,
111
- { instanceOf : shiritori . Win } )
111
+ { instanceOf : shiritori . Win } )
112
112
} )
113
113
114
114
test ( 'interact: error ' , async t => {
115
115
await t . throwsAsync ( shiritori . interact ( k => Promise . resolve ( { 'つけまん' : '' } ) ,
116
- 'とんかつ' , [ 'べんと' ] ) ,
117
- { instanceOf : Error ,
118
- message :/ n o d i c t i o n a r y e n t r y / } )
116
+ 'とんかつ' , [ 'べんと' ] ) ,
117
+ { instanceOf : Error ,
118
+ message : / n o d i c t i o n a r y e n t r y / } )
119
119
} )
0 commit comments