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