File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ def command_type
37
37
38
38
def arg1
39
39
case command_type
40
- when C_PUSH , C_POP
41
- current . split [ 1 ]
42
- else
40
+ when C_ARITHMETIC
43
41
current
42
+ else
43
+ current . split [ 1 ]
44
44
end
45
45
end
46
46
Original file line number Diff line number Diff line change 211
211
context 'when the current command is a label' do
212
212
let ( :input ) { 'label LOOP_START' }
213
213
214
- it 'returns the first argument' , :pending do
214
+ it 'returns the first argument' do
215
215
expect ( parser . arg1 ) . to eq 'LOOP_START'
216
216
end
217
217
end
218
218
219
219
context 'when the current command is a goto' do
220
220
let ( :input ) { 'goto WHILE' }
221
221
222
- it 'returns the first argument' , :pending do
222
+ it 'returns the first argument' do
223
223
expect ( parser . arg1 ) . to eq 'WHILE'
224
224
end
225
225
end
226
226
227
227
context 'when the current command is an if-goto' do
228
228
let ( :input ) { 'if-goto COMPUTE_ELEMENT' }
229
229
230
- it 'returns the first argument' , :pending do
230
+ it 'returns the first argument' do
231
231
expect ( parser . arg1 ) . to eq 'COMPUTE_ELEMENT'
232
232
end
233
233
end
You can’t perform that action at this time.
0 commit comments