Hi Dominique,

On Fri, Apr 24, 2020 at 10:18 AM Dominique PellĂ© <[email protected]>
wrote:

> *@dpelle* commented on this pull request.
> ------------------------------
>
> In src/testdir/test_expr.vim
> <https://github.com/vim/vim/pull/5976#discussion_r414735853>:
>
> > @@ -583,4 +585,14 @@ func Test_expr_eval_error()
>    call assert_fails("let v = -{}", 'E728:')
>  endfunc
>
> +" Test for float value comparison
> +func Test_float_compare()
> +  call assert_true(1.2 == 1.2)
> +  call assert_true(1.0 != 1.2)
> +  call assert_true(1.2 > 1.0)
> +  call assert_true(1.2 >= 1.2)
> +  call assert_true(1.0 < 1.2)
> +  call assert_true(1.2 <= 1.2)
>
> How about testing:
>
>    - NaN (which is never equal to anything, including itself)
>    - +infinity
>    - -infinity
>    - +0.0 and -0.0 (which should be equal despite having different
>    representation)
>
>
I will add these cases.

Thanks,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mt774PdVD%2BdmjVpzT27QGHb8emwCrU5_RbVMWxJTOi%3DQ%40mail.gmail.com.

Raspunde prin e-mail lui