Skip to content

Commit

Permalink
Spec do if a > b with sequence aliased to do
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Sep 20, 2023
1 parent 1a06972 commit b15648d
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions spec/pcore/sequence_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,31 +101,38 @@
set block sequence
set then sequence
set else sequence
set do sequence
set f.l []
push f.l 'a'
block
push f.l 'b'
push f.l 'c'
do if (length f.l) > 10
push f.l 'd'
push f.l 'e'
if (length f.l) > 10
then
push f.l 'd'
push f.l 'e'
else
push f.l 'f'
push f.l 'g'
if (length f.l) > 1
then
else
push f.l 'h'
push f.l 'i'
else
if (length f.l) > 1
then
push f.l 'j'
push f.l 'k'
push f.l 'l'
else
push f.l 'l'
push f.l 'm'
do if (length f.l) > 1
push f.l 'o'
push f.l 'p'
push f.l 'q'
})

expect(r).to have_terminated_as_point
expect(r['payload']['l']).to eq(%w[ a b c f g h i l ])
expect(r['payload']['l']).to eq(%w[ a b c h i j k o p q ])
end
end
end
Expand Down

0 comments on commit b15648d

Please sign in to comment.