-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix arguments in editline tests that only run in cmake builds
Summary: We failed to update these unit tests when we banned argument coercion for builtin arguments (because we never run these tests internally). Try to fix these tests by replacing values of the wrong type with the values that they would have been coerced to when that was still allowed. Also fix one test expectation that was not adjusted to deal with hack array migration. Differential Revision: D39861971 fbshipit-source-id: 7052b9ebe84d41fca4eb9eea099d991e564d1a08
- Loading branch information
1 parent
09c1604
commit 206c8d4
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?hh | ||
<<__EntryPoint>> function main(): void { | ||
var_dump(@readline_info()); | ||
var_dump(@readline_info(1)); | ||
var_dump(@readline_info(1,1)); | ||
var_dump(@readline_info('1')); | ||
var_dump(@readline_info('1','1')); | ||
var_dump(@readline_info('line_buffer')); | ||
var_dump(@readline_info('readline_name')); | ||
var_dump(@readline_info('readline_name', 1)); | ||
var_dump(@readline_info('readline_name', '1')); | ||
var_dump(@readline_info('readline_name')); | ||
var_dump(@readline_info('attempted_completion_over',1)); | ||
var_dump(@readline_info('attempted_completion_over', '1')); | ||
var_dump(@readline_info('attempted_completion_over')); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters