History log of /PHP-Parser/test/code/parser/scalar/float.test (Results 1 – 9 of 9)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 4e27a17c 06-Jun-2022 Nikita Popov

Use visitor to assign comments

This fixes the long-standing issue where a comment would get assigned
to all nodes with the same starting position, instead of only the
outer-most one.

Use visitor to assign comments

This fixes the long-standing issue where a comment would get assigned
to all nodes with the same starting position, instead of only the
outer-most one.

Fixes #253.

show more ...


# 4ce97812 12-Nov-2022 Nikita Popov

Fix parsing of large hex floats containing "e"

These ended up taking the code path for normal floats and being
cast to zero.


# 66b20bd6 03-Sep-2022 Nikita Popov

Rename Scalar\DNumber to Scalar\Float_


Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1, v4.2.0, v4.1.1, v4.1.0, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4, v4.0.0alpha3, v3.1.3, v4.0.0alpha2, v3.1.2, v4.0.0alpha1, v3.1.1, v3.1.0, v3.0.6, v3.0.5, v3.0.4, v3.0.3
# 953f8c96 19-Jan-2017 Nikita Popov

Perform automated test update


Revision tags: v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2, v3.0.0beta1, v2.1.1, v3.0.0alpha1, v2.1.0
# a0c216bf 09-Mar-2016 Nikita Popov

Add dumpComments option to NodeDumper

Adding this as an option to avoid breaking people's tests.

Some of the test results show pretty clearly that we are incorrectly
assigning t

Add dumpComments option to NodeDumper

Adding this as an option to avoid breaking people's tests.

Some of the test results show pretty clearly that we are incorrectly
assigning the same comment multiple times for nested nodes (mentioned
in #36).

show more ...


Revision tags: v2.0.1, v2.0.0, v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0
# b9afcdfd 14-Jul-2015 Nikita Popov

Revert "Make tests compatible with PHP 7"

This reverts commit 91295a07903fbd28d1f5c52611968ce0b3a4517e.

This should no longer be necessary.

Conflicts:
test/PhpP

Revert "Make tests compatible with PHP 7"

This reverts commit 91295a07903fbd28d1f5c52611968ce0b3a4517e.

This should no longer be necessary.

Conflicts:
test/PhpParser/ParserTest.php

show more ...


Revision tags: v1.3.0, v1.2.2, v1.2.1, v1.2.0
# 91295a07 26-Feb-2015 Nikita Popov

Make tests compatible with PHP 7

When parsing on PHP 7 we will no longer be able to deal with
code that contains invalid octal literals. Currently we'll fatal,
after engine exception

Make tests compatible with PHP 7

When parsing on PHP 7 we will no longer be able to deal with
code that contains invalid octal literals. Currently we'll fatal,
after engine exceptions land we'll throw an exception instead.

show more ...


Revision tags: v1.1.0, v1.0.2, v1.0.1, v1.0.0, v1.0.0beta2, v0.9.5, v1.0.0beta1, v0.9.4, v0.9.3, v0.9.2
# 49721244 08-Jun-2012 nikic

Fix test failures due to precision differences

Travis 5.2 seems to have changed the float output precision, so a test was
failing. Now the numbers in the expected output are also provide

Fix test failures due to precision differences

Travis 5.2 seems to have changed the float output precision, so a test was
failing. Now the numbers in the expected output are also provided by PHP,
so they should be the same.

show more ...


# 81e53ce0 11-May-2012 nikic

Insert comments when pretty printing

This changset also adds unit tests for Comments and adds a way to test the
pretty printer.