Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: completion matching



Bart Schaefer wrote:

> On Oct 13, 10:41am, Sven Wischnowsky wrote:
> } 
> } Playing with what Jay described in his last message showed two bugs in 
> } the completion matching code:
> 
> Are there tests for these we should be adding to Test/54compmatch.ztst?

Why not.

Bye
 Sven

Index: Test/54compmatch.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/54compmatch.ztst,v
retrieving revision 1.5
diff -u -r1.5 54compmatch.ztst
--- Test/54compmatch.ztst	2000/08/14 15:45:43	1.5
+++ Test/54compmatch.ztst	2000/10/16 10:32:35
@@ -509,6 +509,22 @@
 >line: {tst c00.abc }{}
 >COMPADD:{}
 
+ workers_12995a_matcher='r:|/=* r:|=*'
+ workers_12995a_list=(u1 u1/q1 u1/q1/e1 u2 u2/q1 u2/q1/e2 u2/q1/e2/a1 u2/q1/e2/a2 u3 u3/q1 u4 u4/q u4/q/a1 u4/q/a2)
+ test_code $workers_12995a_matcher workers_12995a_list
+ comptest $'tst u/q/a\t'
+0:First test from workers 12995
+>line: {tst u4/q/a}{}
+>COMPADD:{}
+
+ workers_12995b_matcher='m:{a-z}={A-Z} r:|/=* r:|=*'
+ workers_12995b_list=(../Completion/Core ../Completion/Commands)
+ test_code $workers_12995b_matcher workers_12995b_list
+ comptest $'tst ../com/cor\002\002\002\002\002\002\002\t'
+0:Second test from workers 12995
+>line: {tst ../Completion/Core }{}
+>COMPADD:{}
+
 %clean
 
   zmodload -ui zsh/zpty

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author