Revision: 5630 http://jnode.svn.sourceforge.net/jnode/?rev=5630&view=rev Author: crawley Date: 2009-08-02 06:12:19 +0000 (Sun, 02 Aug 2009)
Log Message: ----------- More testcases for the 'read' builtin Modified Paths: -------------- trunk/shell/src/test/org/jnode/test/shell/bjorne/bjorne-builtin-tests.xml Modified: trunk/shell/src/test/org/jnode/test/shell/bjorne/bjorne-builtin-tests.xml =================================================================== --- trunk/shell/src/test/org/jnode/test/shell/bjorne/bjorne-builtin-tests.xml 2009-08-02 05:57:35 UTC (rev 5629) +++ trunk/shell/src/test/org/jnode/test/shell/bjorne/bjorne-builtin-tests.xml 2009-08-02 06:12:19 UTC (rev 5630) @@ -151,4 +151,29 @@ +1+ +2 3+ </output> </testSpec> + <testSpec title="read 2" runMode="AS_SCRIPT" rc="0"> + <script>#!bjorne + IFS="|" read A B C <<EOF +1|2|3 +EOF + echo +$A+ +$B+ +$C+ + IFS=" |" read A B C D <<EOF + 1 | 2 | 3 +EOF + echo +$A+ +$B+ +$C+ +$D+ + IFS=" |" read A B C D <<EOF + 1 | 2 || 3 +EOF + echo +$A+ +$B+ +$C+ +$D+ + IFS="" read A B <<EOF + 1 | 2 | 3 +EOF + echo +$A+ +$B+ + </script> + <output>+1+ +2+ +3+ ++1+ +2+ +3+ ++ ++1+ +2+ ++ +3+ ++ 1 | 2 | 3 + ++ +</output> + </testSpec> </testSet> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jnode-svn-commits mailing list Jnode-svn-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits