Added and passed comparison test
This commit is contained in:
@@ -144,7 +144,7 @@ func (machine *Machine) Execute(offset int) (err error) {
|
||||
// checks if the last word on the stack is less than the
|
||||
// second to last word on the stack
|
||||
less := 0
|
||||
if machine.Pop() > machine.Pop() {
|
||||
if machine.Pop() < machine.Pop() {
|
||||
less = 1
|
||||
}
|
||||
machine.Push(less)
|
||||
|
||||
Reference in New Issue
Block a user