-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests getting weird characters in the output #982
Comments
The test succeeds for me on master on MacOS... |
Uh, sorry. Just before submitting I was double-checking the behavior for various lengths of the prompt, an accidentally copied the version which prints Sorry for the trouble. |
I think this is happens typically in tests, not so important in real uses. Caused by:
#975
When the
Display
is set to size0x0
, it used to haveInteger.MAX_VALUE-1
columns, and1
row. #975 changed that to1
column,1
row, which, by itself seems to make sense. But, there's some special handling when writing at the very right edge of the terminal:jline3/terminal/src/main/java/org/jline/utils/Display.java
Line 312 in 84eea31
So, some tests, which effectively run with
Display
size0x0
get the internal size of1x1
, and write odd number of character then get\b
in the output, which they didn't before. And it is hard to defend adding these characters to the expected test output. Not sure at this time what is the more appropriate way out of this, but though I would report it.To see the problem, try to add this test into
reader/src/test/java/org/jline/reader/impl/LineReaderTest.java
:The text was updated successfully, but these errors were encountered: