comparison src/testdir/test_method.vim @ 19193:9f98957582d6 v8.2.0155

patch 8.2.0155: warnings from MinGW compiler; tests fail without +float Commit: https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 26 21:42:03 2020 +0100 patch 8.2.0155: warnings from MinGW compiler; tests fail without +float Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when building without +float feature. Solution: Init variables. Fix Json parsing. Skip a few tests that require the +float feature.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jan 2020 21:45:03 +0100
parents 6c3a8312486d
children b3e93a05c3ca
comparison
equal deleted inserted replaced
19192:68049eeb2e00 19193:9f98957582d6
1 " Tests for ->method() 1 " Tests for ->method()
2
3 source check.vim
2 4
3 func Test_list_method() 5 func Test_list_method()
4 let l = [1, 2, 3] 6 let l = [1, 2, 3]
5 call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4)) 7 call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4))
6 eval l->assert_equal(l) 8 eval l->assert_equal(l)
116 118
117 delfunc Concat 119 delfunc Concat
118 endfunc 120 endfunc
119 121
120 func Test_method_float() 122 func Test_method_float()
123 CheckFeature float
121 eval 1.234->string()->assert_equal('1.234') 124 eval 1.234->string()->assert_equal('1.234')
122 eval -1.234->string()->assert_equal('-1.234') 125 eval -1.234->string()->assert_equal('-1.234')
123 endfunc 126 endfunc
124 127
125 func Test_method_syntax() 128 func Test_method_syntax()