view interps/cfunge/cfunge-src/tests/frth-test.b98 @ 12256:821155c00e34 draft

<fizzie> ` sed -e \'s|wisdom|bin|\' < ../bin/culprits > ../bin/cblprits; chmod a+x ../bin/cblprits
author HackEso <hackeso@esolangs.org>
date Sat, 07 Dec 2019 23:36:22 +0000
parents 859f9b4339e6
children
line wrap: on
line source

"HTRF"4#v(v
        >n a".detroppus ton HTRF">:#,_@
  v       >na".tnemugra evitagen egral htiw L tset lliW">:#,_
v >1 0aaaaa****- #v L 0{0a".tcelfer ton diD">:#,_
v                 >0{0a".detcelfeR">:#,_
>   0" :kcats no smeti owt poT">:#,_0}..a,@

This program pushes a 1 before. The program may print several things. Known
examples are included below (indentation added for clarity). The behaviour is
undefined.

cfunge:
  Will test L with large negative argument.
  Reflected.
  Top two items on stack: 1 0
CCBI:
  Will test L with large negative argument.
  Did not reflect.
  Top two items on stack: 0 1
RC/Funge 1:
  Will test L with large negative argument.
  Segmentation fault
RC/Funge 2:
  Will test L with large negative argument.
  Did not reflect.
  Top two items on stack: 0 0
PyFunge:
  Will test L with large negative argument.
  Did not reflect.
  Top two items on stack: 0 0