I wanted to contribute something else at first - but I saw that most of the unit tests were not working, so I tried to fix them first.....
I replaced direct calls to find_word_breaks and perform_word_wrap (which do not exist anymore at their original places) with hopefully equivalent tests involving an actual Multiline instance
I also improved the test script so it doesn't open a DR window (which makes it a bit faster and possible to use in environments without an actual screen like a CI system)
There were several tests about which I didn't know what to do with them. My intuition tells me that I can probably delete them but I was not sure if there was some crucial bit of word wrapping logic still hidden in there which I didn't translate into the new test format
Btw: are those runtest etc scripts normal shell scripts? I think you might not need the final cd - since usually shells restore there old working directory after executing a script
I wanted to contribute something else at first - but I saw that most of the unit tests were not working, so I tried to fix them first.....
I replaced direct calls to
find_word_breaks
andperform_word_wrap
(which do not exist anymore at their original places) with hopefully equivalent tests involving an actualMultiline
instanceI also improved the
test
script so it doesn't open a DR window (which makes it a bit faster and possible to use in environments without an actual screen like a CI system)There were several tests about which I didn't know what to do with them. My intuition tells me that I can probably delete them but I was not sure if there was some crucial bit of word wrapping logic still hidden in there which I didn't translate into the new test format
Btw: are those
run
test
etc scripts normal shell scripts? I think you might not need the finalcd -
since usually shells restore there old working directory after executing a script