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

Re: RFC PATCH: Sketch at :@ subscripting



Bart Schaefer wrote on Sat, Apr 10, 2021 at 14:59:28 -0700:
> On Sat, Apr 10, 2021 at 1:39 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
> >
> > > Could someone add that as an XFail test (one with the 'F' flag)?
> 
> This OK?

+1.  The expectations are minimal, so the test will start to XPass as
soon as zsh's behaviour changes.  If the behaviour has changed because
the bug was fixed, we can extend the test's expectations then.

I'll only suggest to add this thread's X-Seq to the ztst file somewhere,
for ease of reference.

Thanks,

Daniel

> diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst
> index c1a8d79cf..4225c543c 100644
> --- a/Test/D06subscript.ztst
> +++ b/Test/D06subscript.ztst
> @@ -289,3 +289,8 @@ F:Regression test for workers/42297
>  >14 24
>  >b b
>  >b?rbaz foob?r
> +
> +  i=1,3
> +  [[ ${a[$i]} = ${a[i]} ]]
> +0f:Math evaluation of commas in array subscripts
> +F:In math, (($i)) should be the same as ((i)).





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