Fix message tests
authorRyan Dahl <ry@tinyclouds.org>
Sun, 20 Jun 2010 00:41:34 +0000 (17:41 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Sun, 20 Jun 2010 00:41:34 +0000 (17:41 -0700)
test/message/2100bytes.js
test/message/2100bytes.out
test/message/hello_world.js
test/message/testcfg.py

index 64a2a29..f2c1aac 100644 (file)
@@ -1,48 +1,48 @@
 require('../common');
 
 sys = require('sys');
-sys.error([
- '***********************************************50',
- '**********************************************100',
- '**********************************************150',
- '**********************************************200',
- '**********************************************250',
- '**********************************************300',
- '**********************************************350',
- '**********************************************400',
- '**********************************************450',
- '**********************************************500',
- '**********************************************550',
- '**********************************************600',
- '**********************************************650',
- '**********************************************700',
- '**********************************************750',
- '**********************************************800',
- '**********************************************850',
- '**********************************************900',
- '**********************************************950',
- '*********************************************1000',
- '*********************************************1050',
- '*********************************************1100',
- '*********************************************1150',
- '*********************************************1200',
- '*********************************************1250',
- '*********************************************1300',
- '*********************************************1350',
- '*********************************************1400',
- '*********************************************1450',
- '*********************************************1500',
- '*********************************************1550',
- '*********************************************1600',
- '*********************************************1650',
- '*********************************************1700',
- '*********************************************1750',
- '*********************************************1800',
- '*********************************************1850',
- '*********************************************1900',
- '*********************************************1950',
- '*********************************************2000',
- '*********************************************2050',
- '*********************************************2100',
+sys.puts([
+ '_______________________________________________50',
+ '______________________________________________100',
+ '______________________________________________150',
+ '______________________________________________200',
+ '______________________________________________250',
+ '______________________________________________300',
+ '______________________________________________350',
+ '______________________________________________400',
+ '______________________________________________450',
+ '______________________________________________500',
+ '______________________________________________550',
+ '______________________________________________600',
+ '______________________________________________650',
+ '______________________________________________700',
+ '______________________________________________750',
+ '______________________________________________800',
+ '______________________________________________850',
+ '______________________________________________900',
+ '______________________________________________950',
+ '_____________________________________________1000',
+ '_____________________________________________1050',
+ '_____________________________________________1100',
+ '_____________________________________________1150',
+ '_____________________________________________1200',
+ '_____________________________________________1250',
+ '_____________________________________________1300',
+ '_____________________________________________1350',
+ '_____________________________________________1400',
+ '_____________________________________________1450',
+ '_____________________________________________1500',
+ '_____________________________________________1550',
+ '_____________________________________________1600',
+ '_____________________________________________1650',
+ '_____________________________________________1700',
+ '_____________________________________________1750',
+ '_____________________________________________1800',
+ '_____________________________________________1850',
+ '_____________________________________________1900',
+ '_____________________________________________1950',
+ '_____________________________________________2000',
+ '_____________________________________________2050',
+ '_____________________________________________2100',
 ].join('\n'));
 
index 61e1383..59040cc 100644 (file)
@@ -1,42 +1,42 @@
-***********************************************50
-**********************************************100
-**********************************************150
-**********************************************200
-**********************************************250
-**********************************************300
-**********************************************350
-**********************************************400
-**********************************************450
-**********************************************500
-**********************************************550
-**********************************************600
-**********************************************650
-**********************************************700
-**********************************************750
-**********************************************800
-**********************************************850
-**********************************************900
-**********************************************950
-*********************************************1000
-*********************************************1050
-*********************************************1100
-*********************************************1150
-*********************************************1200
-*********************************************1250
-*********************************************1300
-*********************************************1350
-*********************************************1400
-*********************************************1450
-*********************************************1500
-*********************************************1550
-*********************************************1600
-*********************************************1650
-*********************************************1700
-*********************************************1750
-*********************************************1800
-*********************************************1850
-*********************************************1900
-*********************************************1950
-*********************************************2000
-*********************************************2050
-*********************************************2100
+_______________________________________________50
+______________________________________________100
+______________________________________________150
+______________________________________________200
+______________________________________________250
+______________________________________________300
+______________________________________________350
+______________________________________________400
+______________________________________________450
+______________________________________________500
+______________________________________________550
+______________________________________________600
+______________________________________________650
+______________________________________________700
+______________________________________________750
+______________________________________________800
+______________________________________________850
+______________________________________________900
+______________________________________________950
+_____________________________________________1000
+_____________________________________________1050
+_____________________________________________1100
+_____________________________________________1150
+_____________________________________________1200
+_____________________________________________1250
+_____________________________________________1300
+_____________________________________________1350
+_____________________________________________1400
+_____________________________________________1450
+_____________________________________________1500
+_____________________________________________1550
+_____________________________________________1600
+_____________________________________________1650
+_____________________________________________1700
+_____________________________________________1750
+_____________________________________________1800
+_____________________________________________1850
+_____________________________________________1900
+_____________________________________________1950
+_____________________________________________2000
+_____________________________________________2050
+_____________________________________________2100
index 2bb74e8..2810b74 100644 (file)
@@ -1,3 +1,3 @@
 require('../common');
 
-error('hello world');
+puts('hello world');
index 0aafdd7..e41803d 100644 (file)
@@ -49,9 +49,9 @@ class MessageTestCase(test.TestCase):
   def IsFailureOutput(self, output):
     f = file(self.expected)
     # Skip initial '#' comment and spaces
-    for line in f:
-      if (not line.startswith('#')) and (not line.strip()):
-        break
+    #for line in f:
+    #  if (not line.startswith('#')) and (not line.strip()):
+    #    break
     # Convert output lines to regexps that we can match
     env = { 'basename': basename(self.file) }
     patterns = [ ]