seqlings 3.0.7

Interactive exercises for learning Seq, a stack-based programming language
1
2
3
4
5
6
7
8
9
10
11
12
# Solution: Push

: push-three ( -- Int Int Int )
    1 2 3
;

: test-push ( -- )
    push-three
    3 test.assert-eq
    2 test.assert-eq
    1 test.assert-eq
;