Skip to content

Commit 950bf8f

Browse files
committed
Adjust tests to work on 32-bit
Fixes #662.
1 parent 4ce9781 commit 950bf8f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/PhpParser/Lexer/EmulativeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ public function provideTestLexNewFeatures() {
241241
['1_000', [
242242
[\T_LNUMBER, '1_000'],
243243
]],
244-
['0xCAFE_F00D', [
245-
[\T_LNUMBER, '0xCAFE_F00D'],
244+
['0x7AFE_F00D', [
245+
[\T_LNUMBER, '0x7AFE_F00D'],
246246
]],
247247
['0b0101_1111', [
248248
[\T_LNUMBER, '0b0101_1111'],

test/code/parser/scalar/numberSeparators.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Different integer syntaxes
44

55
6.674_083e-11;
66
299_792_458;
7-
0xCAFE_F00D;
7+
0x7AFE_F00D;
88
0b0101_1111;
99
0137_041;
1010

@@ -42,7 +42,7 @@ array(
4242
)
4343
2: Stmt_Expression(
4444
expr: Scalar_Int(
45-
value: 3405705229
45+
value: 2063527949
4646
)
4747
)
4848
3: Stmt_Expression(
@@ -196,4 +196,4 @@ array(
196196
)
197197
)
198198
)
199-
)
199+
)

0 commit comments

Comments
 (0)