From e072fd2c30e506516dd4677b8e1d6142609e1c37 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 12 Nov 2022 16:19:15 +0100 Subject: [PATCH] Adjust tests to work on 32-bit Fixes #662. (cherry picked from commit 950bf8f1d1865cfd0d248e13a3455db0be1d870c) --- test/PhpParser/Lexer/EmulativeTest.php | 4 ++-- test/code/parser/scalar/numberSeparators.test | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/PhpParser/Lexer/EmulativeTest.php b/test/PhpParser/Lexer/EmulativeTest.php index 384061402e..a368339094 100644 --- a/test/PhpParser/Lexer/EmulativeTest.php +++ b/test/PhpParser/Lexer/EmulativeTest.php @@ -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'], diff --git a/test/code/parser/scalar/numberSeparators.test b/test/code/parser/scalar/numberSeparators.test index 333c3d691d..cf1b19817b 100644 --- a/test/code/parser/scalar/numberSeparators.test +++ b/test/code/parser/scalar/numberSeparators.test @@ -4,7 +4,7 @@ Different integer syntaxes 6.674_083e-11; 299_792_458; -0xCAFE_F00D; +0x7AFE_F00D; 0b0101_1111; 0137_041; @@ -42,7 +42,7 @@ array( ) 2: Stmt_Expression( expr: Scalar_LNumber( - value: 3405705229 + value: 2063527949 ) ) 3: Stmt_Expression( @@ -196,4 +196,4 @@ array( ) ) ) -) \ No newline at end of file +)