amagnasco / xwpe

Upload of an abandoned ncurses-based programming environment
http://www.identicalsoftware.com/xwpe/
GNU General Public License v2.0
31 stars 7 forks source link

Some observations while testing the original xwpe alpha code. #76

Open gbonnema opened 7 years ago

gbonnema commented 7 years ago

While testing the original xwpe code, I noticed a few things:

  1. The search works different when not replacing a string. Actually, better. This is only true for fixed searches (non-regular-expression).
  2. The replace always only replaces the first found occurrence, places the cursor at the next result, and then goes on to report 1 changed of 1 occurrence. Probably not intended to work this way, but to keep searching and asking whether to change until escape is pressed. (this behaviour is intended)
  3. There is no way for me to see which version of the program I am testing. It might be time to add an about dialog window to the code, so I can see what I am testing.
  4. The program internally tests the specific program name it was called with. So using a different name would cause problems. It might be an idea to alter that towards options. In stead of calling wpe we would call xwpe -nox (example). Same for we: xwpe -nox -nop. That way down the road we could change the program name, without consequences.