rev 309 - trunk/pr

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-04-09 16:08:30 -0400 (Fri, 09 Apr 2004)
New Revision: 309

Modified:
   trunk/pr/chained.pr
   trunk/pr/stdio_test.pr
Log:
Fixup test scripts.


Modified: trunk/pr/chained.pr
===================================================================
--- trunk/pr/chained.pr	2004-04-09 19:39:18 UTC (rev 308)
+++ trunk/pr/chained.pr	2004-04-09 20:08:30 UTC (rev 309)
@@ -1,33 +1,33 @@
-
-#!/usr/bin/env prothon
-
-print "these should all be true\n"
-
-print 1 < 2 < 3 < 5 < 199
-
-print 10 < 20 <= 30 <= 30 >= 30 >= 20 > 10
-
-print 1 < 2 > 1 < 2 > 1
-
-print 1 >= 1 == 1 != 2 == 2 > 1 <= 1 <= 2
-
-print "\n\nthese should all be false\n"
-
-print 1 < 2 < 3 < 2 < 199
-
-print 10 < 20 <= 30 <= 29 >= 30 >= 20 > 10
-
-print 1 < 2 > 2 < 2 > 1
-
-print 1 >= 1 == 2 != 2 == 2 > 1 <= 1 <= 2
-
-def f(i):
-	print i,
-	return i
-	
-print "\n\nThis should print 0 1 2\n"
-f(0) < f(1) < f(2)
-
-print "\n\nThis should print 0 1\n"
-f(0) > f(1) < f(2)
-
+#!/usr/bin/env prothon
+
+print "these should all be true\n"
+
+print 1 < 2 < 3 < 5 < 199
+
+print 10 < 20 <= 30 <= 30 >= 30 >= 20 > 10
+
+print 1 < 2 > 1 < 2 > 1
+
+print 1 >= 1 == 1 != 2 == 2 > 1 <= 1 <= 2
+
+print "\n\nthese should all be false\n"
+
+print 1 < 2 < 3 < 2 < 199
+
+print 10 < 20 <= 30 <= 29 >= 30 >= 20 > 10
+
+print 1 < 2 > 2 < 2 > 1
+
+print 1 >= 1 == 2 != 2 == 2 > 1 <= 1 <= 2
+
+def f(i):
+	print i,
+	return i
+	
+print "\n\nThis should print 0 1 2\n"
+f(0) < f(1) < f(2)
+
+print "\n\nThis should print 0 1\n"
+f(0) > f(1) < f(2)
+
+print


Property changes on: trunk/pr/chained.pr
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native

Modified: trunk/pr/stdio_test.pr
===================================================================
--- trunk/pr/stdio_test.pr	2004-04-09 19:39:18 UTC (rev 308)
+++ trunk/pr/stdio_test.pr	2004-04-09 20:08:30 UTC (rev 309)
@@ -17,11 +17,5 @@
 print "Opening test file for stdout"
 
 File.stdout = File("stdout.txt", "w+")
-
 stdout.write("Should still go to stdout\n")
 File.stdout.write("Should go to stdout.txt file\n")
-
-
-# XXX: Currently the second line here crashes prothon
-# mywrite = File.stdout.write
-# mywrite("Should print to stdout.txt\n")
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.