* Completion tests fail with patches to 11415
@ 2000-05-16 16:38 Bart Schaefer
0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2000-05-16 16:38 UTC (permalink / raw)
To: zsh-workers
*** /tmp/zsh.ztst.out.26678 Tue May 16 09:36:31 2000
--- /tmp/zsh.ztst.tout.26678 Tue May 16 09:36:33 2000
***************
*** 1 ****
! line: {tst -x }{}
--- 1,2 ----
! line: {tst -}{}
! MESSAGE:{arg}
Test ../../zsh-3.1.6/Test/53completion.ztst failed: output differs from expected as shown above for:
code='compdef _tst tst; _tst () { _arguments "-x" ":arg:" }'
comptest -c "$code" $'tst -\t'
Was testing: _arguments
../../zsh-3.1.6/Test/53completion.ztst: test failed.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Completion tests fail with patches to 11415
@ 2000-05-17 10:37 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2000-05-17 10:37 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer wrote:
> On May 17, 8:52am, Sven Wischnowsky wrote:
> }
> } } Bart Schaefer wrote:
> }
> } > ! line: {tst -x }{}
> } > --- 1,2 ----
> } > ! line: {tst -}{}
> }
> } That's caused by 11406. Humm.
> }
> } What are we supposed to do now. With respect to the patch, this
> } behaviour is correct (and quite reasonable, I think). Should we only
> } update the test? Should we make _arguments not try default-option
> } completion only when it tried a *non-empty* action?
> }
> } I think I prefer the former.
>
> Updating the test is fine with me. Is the test right after it (which
> previously was expected to produce identical output) also correct with
> respect to the intended post-11406 behavior?
Yes, because there is no argument specification that was `executed'.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Completion tests fail with patches to 11415
2000-05-17 6:52 Sven Wischnowsky
@ 2000-05-17 10:23 ` Bart Schaefer
0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2000-05-17 10:23 UTC (permalink / raw)
To: Sven Wischnowsky, zsh-workers
On May 17, 8:52am, Sven Wischnowsky wrote:
}
} } Bart Schaefer wrote:
}
} > ! line: {tst -x }{}
} > --- 1,2 ----
} > ! line: {tst -}{}
}
} That's caused by 11406. Humm.
}
} What are we supposed to do now. With respect to the patch, this
} behaviour is correct (and quite reasonable, I think). Should we only
} update the test? Should we make _arguments not try default-option
} completion only when it tried a *non-empty* action?
}
} I think I prefer the former.
Updating the test is fine with me. Is the test right after it (which
previously was expected to produce identical output) also correct with
respect to the intended post-11406 behavior?
Index: Test/53completion.ztst
===================================================================
@@ -121,7 +121,8 @@
code='compdef _tst tst; _tst () { _arguments "-x" ":arg:" }'
comptest -c "$code" $'tst -\t'
0:_arguments
->line: {tst -x }{}
+>line: {tst -}{}
+>MESSAGE:{arg}
code='compdef _tst tst; _tst () { _arguments "-x:arg:" }'
comptest -c "$code" $'tst -x\t'
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Completion tests fail with patches to 11415
@ 2000-05-17 6:52 Sven Wischnowsky
2000-05-17 10:23 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Sven Wischnowsky @ 2000-05-17 6:52 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer wrote:
> *** /tmp/zsh.ztst.out.26678 Tue May 16 09:36:31 2000
> --- /tmp/zsh.ztst.tout.26678 Tue May 16 09:36:33 2000
> ***************
> *** 1 ****
> ! line: {tst -x }{}
> --- 1,2 ----
> ! line: {tst -}{}
> ! MESSAGE:{arg}
> Test ../../zsh-3.1.6/Test/53completion.ztst failed: output differs from expected as shown above for:
> code='compdef _tst tst; _tst () { _arguments "-x" ":arg:" }'
> comptest -c "$code" $'tst -\t'
> Was testing: _arguments
> ../../zsh-3.1.6/Test/53completion.ztst: test failed.
That's caused by 11406. Humm.
What are we supposed to do now. With respect to the patch, this
behaviour is correct (and quite reasonable, I think). Should we only
update the test? Should we make _arguments not try default-option
completion only when it tried a *non-empty* action?
I think I prefer the former.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-05-17 10:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16 16:38 Completion tests fail with patches to 11415 Bart Schaefer
2000-05-17 6:52 Sven Wischnowsky
2000-05-17 10:23 ` Bart Schaefer
2000-05-17 10:37 Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).