pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2002-11-04
2002-11-04 09:24:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4457a8bfce0fc50fd5497c53c8a0acbde7f2a069 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Tests shouldn't test for current behaviour, but for correct behaviour.
Rev: src/testsuite.in:1.558
1:
-
test_true([["$Id: testsuite.in,v 1.
557
2002/11/
01
13
:
29
:
23
jhs
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
558
2002/11/
04
09
:
24
:
42
grubba
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
7075:
test_eq([[cpp("#define MAX(X,Y) ((X)>(Y)?(X):(Y))\n#define MAX3(X,Y,Z) MAX(MAX(X,Y),Z)\nMAX3(1,2,3)")]],"# 1 \"-\"\n\n\n(( (( 1 )>( 2 )?( 1 ):( 2 )) )>( 3 )?( (( 1 )>( 2 )?( 1 ):( 2 )) ):( 3 ))") test_eq([[cpp("foo\xfeff""bar \xfeff gazonk")]],[[cpp("foobar gazonk")]]) test_eq([[cpp("#define A(X) #X\n#define B(Y) A(Y)\nB(foo)")]],
-
"# 1 \"-\"\n\n\n \"
foo \
" ")
+
"# 1 \"-\"\n\n\n \"
foo\
" ")
test_eq([[compile_string(#" #define Y(y) #y