Skip to content

Commit

Permalink
[tests] Make ...completion less flakey
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed Nov 26, 2024
1 parent 0aa9f05 commit 739a026
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/test_cexercise_completions/cexercise/completions.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdio.h>
#include <assert.h>
#define xxxx(a) a*a

/*
Check completion on following demonstration lines! Each
Expand Down Expand Up @@ -33,7 +33,7 @@ void completions() {
;

// completion list
a
x
;
/* In the proposals list:
<return> - select the completion.
Expand Down Expand Up @@ -62,7 +62,7 @@ void completions() {
;

// macro names completions
ass
xxx
;


Expand Down
10 changes: 5 additions & 5 deletions tests/test_cexercise_completions/expected
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ end-of-options
end-of-options

<sync>
<all-completions nofocus=0 len=<n>>asprintf :int asprintf(__ERROR__, __ERROR__, ...)
assert :#define assert(expr)
auto :keyword
asm :keyword</all-completions>
<goto>
<position-lc line=36 col=4 len=<n>>CURDIR/cexercise/completions.c</position-lc>
</goto>
<single-completion len=<n>>xxxx</single-completion>
-xrefrc CURDIR/.c-xrefrc -p CURDIR -olcxcomplet -maxcompls=500 -olinelen=236 -olmark=0 -olcursor=1689 CURDIR/cexercise/completions.c
end-of-options

Expand Down Expand Up @@ -72,7 +72,7 @@ end-of-options
<goto>
<position-lc line=65 col=4 len=<n>>CURDIR/cexercise/completions.c</position-lc>
</goto>
<single-completion len=<n>>assert</single-completion>
<single-completion len=<n>>xxxx</single-completion>
-xrefrc CURDIR/.c-xrefrc -p CURDIR -olcxcomplet -maxcompls=500 -olinelen=236 -olmark=0 -olcursor=1936 CURDIR/cexercise/completions.c
end-of-options

Expand Down

0 comments on commit 739a026

Please sign in to comment.