diff src/testdir/test_vim9_expr.vim @ 19249:2a017e9dc6da v8.2.0183

patch 8.2.0183: tests fail when the float feature is disabled Commit: https://github.com/vim/vim/commit/5feabe00c47fa66d5f4c95213f150488433f78e3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 30 18:24:53 2020 +0100 patch 8.2.0183: tests fail when the float feature is disabled Problem: Tests fail when the float feature is disabled. Solution: Skip tests that don't work without float support.
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 Jan 2020 18:30:04 +0100
parents 89931701e033
children 77cce0439714
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -19,7 +19,9 @@ endfunc
 def Test_expr1()
   assert_equal('one', true ? 'one' : 'two')
   assert_equal('one', 1 ? 'one' : 'two')
-  assert_equal('one', 0.1 ? 'one' : 'two')
+  if has('float')
+    assert_equal('one', 0.1 ? 'one' : 'two')
+  endif
   assert_equal('one', 'x' ? 'one' : 'two')
 "  assert_equal('one', 0z1234 ? 'one' : 'two')
   assert_equal('one', [0] ? 'one' : 'two')