aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-09 23:31:41 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-09-01 09:03:46 -0700
commit641c5b3f08076b305e9ae5f9a8843d2647053da0 (patch)
tree7af33869dad7687863066e910ba084652b451506 /test/functional/helpers.lua
parent53b7f60805745c473bc31acc02e018abb6b031a7 (diff)
downloadrneovim-641c5b3f08076b305e9ae5f9a8843d2647053da0.tar.gz
rneovim-641c5b3f08076b305e9ae5f9a8843d2647053da0.tar.bz2
rneovim-641c5b3f08076b305e9ae5f9a8843d2647053da0.zip
test/inccommand_spec: avoid indeterminism
- Use shell-test.c to avoid the squishiness of system shells. - Use screen:expect_unchanged() to avoid hardcoded (brittle) test. Fails correctly if 5020daa6e5ce is reverted (remove terminal_check(), restore redraw() in refresh_timer_cb()): [ ERROR ] test/functional/ui/inccommand_spec.lua @ 2550: :substitute with inccommand during :terminal activity test/functional/helpers.lua:402: retry() attempts: 2 test/functional/ui/screen.lua:579: Row 8 did not match. Expected: |foo bar baz | |bar baz fox | |bar foo baz | |{15:~ }| |{15:~ }| |{15:~ }| |{11:[No Name] [+] }| |*26: xxx | |27: xxx | |28: xxx | |29: xxx | |30: xxx | | | |{10:term }| |:%s/foo/ZZZ^ | Actual: |foo bar baz | |bar baz fox | |bar foo baz | |{15:~ }| |{15:~ }| |{15:~ }| |{11:[No Name] [+] }| |*107: xxx | |108: xxx | |109: xxx | |110: xxx | |111: xxx | | | |{10:term }| |:%s/foo/ZZZ^ |
Diffstat (limited to 'test/functional/helpers.lua')
0 files changed, 0 insertions, 0 deletions