Page MenuHomePhabricator

Add support for exponentiation
Needs ReviewPublic

Authored by joshuaspence on May 3 2017, 12:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 6 2024, 12:12 AM
Unknown Object (File)
Sep 4 2024, 4:33 AM
Unknown Object (File)
Aug 24 2024, 3:54 PM
Unknown Object (File)
Aug 21 2024, 2:27 PM
Unknown Object (File)
Aug 20 2024, 4:21 PM
Unknown Object (File)
Aug 14 2024, 6:31 PM
Unknown Object (File)
Aug 7 2024, 7:54 AM
Unknown Object (File)
Aug 7 2024, 7:45 AM

Details

Summary
Test Plan

Added a test case.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 16771
Build 22375: Run Core Tests
Build 22374: arc lint + arc unit

Unit TestsFailed

TimeTest
44 msPHPASTParserTestCase::Unknown Unit Message ("")
Assertion failed, expected values to be equal (at PHPASTParserTestCase.php:120): Parser output for "base-pass.php.test". Expected vs Actual Output Diff --- Old Value
22 msPHPASTParserTestCase::Unknown Unit Message ("")
Assertion failed, expected values to be equal (at PHPASTParserTestCase.php:120): Parser output for "base-pass.php.test". Expected vs Actual Output Diff --- Old Value
1 msAbstractDirectedGraphTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAbstractDirectedGraphTestCase::Unknown Unit Message ("")
1 assertion passed.
0 msAbstractDirectedGraphTestCase::Unknown Unit Message ("")
1 assertion passed.
View Full Test Results (2 Failed · 383 Passed · 2 Skipped)

Event Timeline

I definitely did something wrong here, because I updated src/parser/xhpast/parser_tokens.php by hand...

Because the token values have shifted pretty much all test cases have bad data :(

It will probably be a lot easier to handle after something like D17802#214972 is implemented.

wow exactly what the language desperately needed

I bet there are as many as 0 uses for this in our small million-line codebase