https://github.com/vim/vim/pull/5659
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
@dpelle commented on this pull request.
In src/testdir/test_arglist.vim:
> @@ -519,6 +519,18 @@ func Test_quit_with_arglist()
call term_sendkeys(buf, ":quit\n")
call WaitForAssert({-> assert_match('^E173:', term_getline(buf, 6))})
call StopVimInTerminal(buf)
+
+ " Try :confirm quit with unedited files in arglist
+ let buf = RunVimInTerminal('', {'rows': 6})
+ call term_sendkeys(buf, ":set nomore\n")
+ call term_sendkeys(buf, ":args a b c\n")
+ call term_sendkeys(buf, ":confirm quit\n")
+ call WaitForAssert({-> assert_match('\[Y\]es, (N)o: ', term_getline(buf, 6))})
+ call term_sendkeys(buf, "N")
+ call term_sendkeys(buf, ":confirm quit\n")
+ call WaitForAssert({-> assert_match('\[Y\]es, (N)o: ', term_getline(buf, 6))})
Can't that be more precise with something like…
assert_match('^\[Y\]es, (N)o: *$', term_getline(buf, 6))
@dpelle commented on this pull request.
In src/testdir/test_arglist.vim:
> @@ -519,6 +519,18 @@ func Test_quit_with_arglist() call term_sendkeys(buf, ":quit\n") call WaitForAssert({-> assert_match('^E173:', term_getline(buf, 6))}) call StopVimInTerminal(buf) + + " Try :confirm quit with unedited files in arglist + let buf = RunVimInTerminal('', {'rows': 6}) + call term_sendkeys(buf, ":set nomore\n") + call term_sendkeys(buf, ":args a b c\n") + call term_sendkeys(buf, ":confirm quit\n") + call WaitForAssert({-> assert_match('\[Y\]es, (N)o: ', term_getline(buf, 6))}) + call term_sendkeys(buf, "N") + call term_sendkeys(buf, ":confirm quit\n") + call WaitForAssert({-> assert_match('\[Y\]es, (N)o: ', term_getline(buf, 6))})Can't that be more precise with something like…
assert_match('^\[Y\]es, (N)o: *$', term_getline(buf, 6))
Merging #5659 into master will increase coverage by
0.04%.
The diff coverage isn/a.
@@ Coverage Diff @@ ## master #5659 +/- ## ========================================== + Coverage 83.41% 83.46% +0.04% ========================================== Files 138 138 Lines 152064 152064 ========================================== + Hits 126848 126915 +67 + Misses 25216 25149 -67
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/drawline.c | 84.67% <0%> (-0.14%) |
⬇️ |
| src/terminal.c | 82.43% <0%> (ø) |
⬆️ |
| src/window.c | 88.59% <0%> (+0.03%) |
⬆️ |
| src/ops.c | 89.71% <0%> (+0.04%) |
⬆️ |
| src/gui.c | 63.68% <0%> (+0.05%) |
⬆️ |
| src/evalvars.c | 87.41% <0%> (+0.06%) |
⬆️ |
| src/normal.c | 83.71% <0%> (+0.06%) |
⬆️ |
| src/search.c | 83.96% <0%> (+0.15%) |
⬆️ |
| src/change.c | 82.29% <0%> (+0.2%) |
⬆️ |
| src/os_unix.c | 63.78% <0%> (+0.22%) |
⬆️ |
| ... and 5 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered by Codecov. Last update 1fa8d2c...facf75b. Read the comment docs.
—
You are receiving this because you commented.