Skip to content

Commit

Permalink
Adjust tests to work on 32-bit
Browse files Browse the repository at this point in the history
Fixes #662.

(cherry picked from commit 950bf8f)
  • Loading branch information
nikic committed Nov 12, 2022
1 parent 7027899 commit e072fd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/PhpParser/Lexer/EmulativeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ public function provideTestLexNewFeatures() {
['1_000', [
[Tokens::T_LNUMBER, '1_000'],
]],
['0xCAFE_F00D', [
[Tokens::T_LNUMBER, '0xCAFE_F00D'],
['0x7AFE_F00D', [
[Tokens::T_LNUMBER, '0x7AFE_F00D'],
]],
['0b0101_1111', [
[Tokens::T_LNUMBER, '0b0101_1111'],
Expand Down
6 changes: 3 additions & 3 deletions test/code/parser/scalar/numberSeparators.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Different integer syntaxes

6.674_083e-11;
299_792_458;
0xCAFE_F00D;
0x7AFE_F00D;
0b0101_1111;
0137_041;

Expand Down Expand Up @@ -42,7 +42,7 @@ array(
)
2: Stmt_Expression(
expr: Scalar_LNumber(
value: 3405705229
value: 2063527949
)
)
3: Stmt_Expression(
Expand Down Expand Up @@ -196,4 +196,4 @@ array(
)
)
)
)
)

0 comments on commit e072fd2

Please sign in to comment.