aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_float_func.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-08-24 15:45:33 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-08-24 15:56:17 -0400
commit01b5499eea24961f0163b0ca3728c649aad53bbf (patch)
treecc5cc5a9004414b9145825beee791f34a06cb66e /src/nvim/testdir/test_float_func.vim
parent34e416667378a610943f614b97da9b865d622806 (diff)
downloadrneovim-01b5499eea24961f0163b0ca3728c649aad53bbf.tar.gz
rneovim-01b5499eea24961f0163b0ca3728c649aad53bbf.tar.bz2
rneovim-01b5499eea24961f0163b0ca3728c649aad53bbf.zip
vim-patch:7.4.1407
Problem: json_encode() does not handle NaN and inf properly. (David Barnett) Solution: For JSON turn them into "null". For JS use "NaN" and "Infinity". Add isnan(). https://github.com/vim/vim/commit/f1b6ac72293e658bb6e68c5cfd926c405b1b6f34
Diffstat (limited to 'src/nvim/testdir/test_float_func.vim')
-rw-r--r--src/nvim/testdir/test_float_func.vim1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_float_func.vim b/src/nvim/testdir/test_float_func.vim
index 5ea5192994..a44c5a9e98 100644
--- a/src/nvim/testdir/test_float_func.vim
+++ b/src/nvim/testdir/test_float_func.vim
@@ -289,7 +289,6 @@ func Test_trunc()
endfunc
func Test_isnan()
- throw 'skipped: Nvim does not support isnan()'
call assert_equal(0, isnan(1.0))
call assert_equal(1, isnan(0.0/0.0))
call assert_equal(0, isnan(1.0/0.0))