Skip to content

Commit 7d0252e

Browse files
committed
Fix message tests
1 parent 125b868 commit 7d0252e

4 files changed

Lines changed: 89 additions & 89 deletions

File tree

test/message/2100bytes.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
require('../common');
22

33
sys = require('sys');
4-
sys.error([
5-
'***********************************************50',
6-
'**********************************************100',
7-
'**********************************************150',
8-
'**********************************************200',
9-
'**********************************************250',
10-
'**********************************************300',
11-
'**********************************************350',
12-
'**********************************************400',
13-
'**********************************************450',
14-
'**********************************************500',
15-
'**********************************************550',
16-
'**********************************************600',
17-
'**********************************************650',
18-
'**********************************************700',
19-
'**********************************************750',
20-
'**********************************************800',
21-
'**********************************************850',
22-
'**********************************************900',
23-
'**********************************************950',
24-
'*********************************************1000',
25-
'*********************************************1050',
26-
'*********************************************1100',
27-
'*********************************************1150',
28-
'*********************************************1200',
29-
'*********************************************1250',
30-
'*********************************************1300',
31-
'*********************************************1350',
32-
'*********************************************1400',
33-
'*********************************************1450',
34-
'*********************************************1500',
35-
'*********************************************1550',
36-
'*********************************************1600',
37-
'*********************************************1650',
38-
'*********************************************1700',
39-
'*********************************************1750',
40-
'*********************************************1800',
41-
'*********************************************1850',
42-
'*********************************************1900',
43-
'*********************************************1950',
44-
'*********************************************2000',
45-
'*********************************************2050',
46-
'*********************************************2100',
4+
sys.puts([
5+
'_______________________________________________50',
6+
'______________________________________________100',
7+
'______________________________________________150',
8+
'______________________________________________200',
9+
'______________________________________________250',
10+
'______________________________________________300',
11+
'______________________________________________350',
12+
'______________________________________________400',
13+
'______________________________________________450',
14+
'______________________________________________500',
15+
'______________________________________________550',
16+
'______________________________________________600',
17+
'______________________________________________650',
18+
'______________________________________________700',
19+
'______________________________________________750',
20+
'______________________________________________800',
21+
'______________________________________________850',
22+
'______________________________________________900',
23+
'______________________________________________950',
24+
'_____________________________________________1000',
25+
'_____________________________________________1050',
26+
'_____________________________________________1100',
27+
'_____________________________________________1150',
28+
'_____________________________________________1200',
29+
'_____________________________________________1250',
30+
'_____________________________________________1300',
31+
'_____________________________________________1350',
32+
'_____________________________________________1400',
33+
'_____________________________________________1450',
34+
'_____________________________________________1500',
35+
'_____________________________________________1550',
36+
'_____________________________________________1600',
37+
'_____________________________________________1650',
38+
'_____________________________________________1700',
39+
'_____________________________________________1750',
40+
'_____________________________________________1800',
41+
'_____________________________________________1850',
42+
'_____________________________________________1900',
43+
'_____________________________________________1950',
44+
'_____________________________________________2000',
45+
'_____________________________________________2050',
46+
'_____________________________________________2100',
4747
].join('\n'));
4848

test/message/2100bytes.out

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
***********************************************50
2-
**********************************************100
3-
**********************************************150
4-
**********************************************200
5-
**********************************************250
6-
**********************************************300
7-
**********************************************350
8-
**********************************************400
9-
**********************************************450
10-
**********************************************500
11-
**********************************************550
12-
**********************************************600
13-
**********************************************650
14-
**********************************************700
15-
**********************************************750
16-
**********************************************800
17-
**********************************************850
18-
**********************************************900
19-
**********************************************950
20-
*********************************************1000
21-
*********************************************1050
22-
*********************************************1100
23-
*********************************************1150
24-
*********************************************1200
25-
*********************************************1250
26-
*********************************************1300
27-
*********************************************1350
28-
*********************************************1400
29-
*********************************************1450
30-
*********************************************1500
31-
*********************************************1550
32-
*********************************************1600
33-
*********************************************1650
34-
*********************************************1700
35-
*********************************************1750
36-
*********************************************1800
37-
*********************************************1850
38-
*********************************************1900
39-
*********************************************1950
40-
*********************************************2000
41-
*********************************************2050
42-
*********************************************2100
1+
_______________________________________________50
2+
______________________________________________100
3+
______________________________________________150
4+
______________________________________________200
5+
______________________________________________250
6+
______________________________________________300
7+
______________________________________________350
8+
______________________________________________400
9+
______________________________________________450
10+
______________________________________________500
11+
______________________________________________550
12+
______________________________________________600
13+
______________________________________________650
14+
______________________________________________700
15+
______________________________________________750
16+
______________________________________________800
17+
______________________________________________850
18+
______________________________________________900
19+
______________________________________________950
20+
_____________________________________________1000
21+
_____________________________________________1050
22+
_____________________________________________1100
23+
_____________________________________________1150
24+
_____________________________________________1200
25+
_____________________________________________1250
26+
_____________________________________________1300
27+
_____________________________________________1350
28+
_____________________________________________1400
29+
_____________________________________________1450
30+
_____________________________________________1500
31+
_____________________________________________1550
32+
_____________________________________________1600
33+
_____________________________________________1650
34+
_____________________________________________1700
35+
_____________________________________________1750
36+
_____________________________________________1800
37+
_____________________________________________1850
38+
_____________________________________________1900
39+
_____________________________________________1950
40+
_____________________________________________2000
41+
_____________________________________________2050
42+
_____________________________________________2100

test/message/hello_world.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
require('../common');
22

3-
error('hello world');
3+
puts('hello world');

test/message/testcfg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def IgnoreLine(self, str):
4949
def IsFailureOutput(self, output):
5050
f = file(self.expected)
5151
# Skip initial '#' comment and spaces
52-
for line in f:
53-
if (not line.startswith('#')) and (not line.strip()):
54-
break
52+
#for line in f:
53+
# if (not line.startswith('#')) and (not line.strip()):
54+
# break
5555
# Convert output lines to regexps that we can match
5656
env = { 'basename': basename(self.file) }
5757
patterns = [ ]

0 commit comments

Comments
 (0)