"Fossies" - the Fresh Open Source Software Archive

Member "bas-2.6/test/test53" (2 Jul 2019, 305 Bytes) of package /linux/privat/bas-2.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 echo -n $0: 'WIDTH... '
    4 
    5 cat >test.bas <<'eof'
    6 width 10
    7 print "Hello world."
    8 width 0
    9 print "Hello world."
   10 eof
   11 
   12 cat >test.ref <<'eof'
   13 Hello worl
   14 d.
   15 Hello world.
   16 eof
   17 
   18 sh ./test/runbas test.bas >test.data
   19 
   20 if cmp test.ref test.data
   21 then
   22   rm -f test.*
   23   echo passed
   24 else
   25   echo failed
   26   exit 1
   27 fi