view interps/cfunge/cfunge-src/tests/frth-test.b98 @ 12155:9e25c5563e7e draft

<b_jonas> `` /bin/sed -i \'s/humor,/humor, \\\\/\' "/hackenv/wisdom/rules of wisdom"
author HackEso <hackeso@esolangs.org>
date Mon, 18 Nov 2019 08:24:30 +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