From 1b556c04bfd3f4c381db5f62a2e25ebf63165712 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 15 Apr 2023 17:04:04 +0800 Subject: [PATCH] vim-patch:8.2.4476: operator name spelled wrong Problem: Operator name spelled wrong. Solution: Change trinary to ternary. (Goc Dundar, closes vim/vim#9850) https://github.com/vim/vim/commit/e41c1dd8890d3f701253255993f4e9af2d12225c Co-authored-by: =?UTF-8?q?Dundar=20G=C3=B6c?= --- test/old/testdir/test_expr.vim | 2 +- test/old/testdir/test_vimscript.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim index 3e5b21a07c..c8b7fde100 100644 --- a/test/old/testdir/test_expr.vim +++ b/test/old/testdir/test_expr.vim @@ -45,7 +45,7 @@ func Test_version() call assert_false(has('patch-9.9.1')) endfunc -func Test_op_trinary() +func Test_op_ternary() let lines =<< trim END call assert_equal('yes', 1 ? 'yes' : 'no') call assert_equal('no', 0 ? 'yes' : 'no') diff --git a/test/old/testdir/test_vimscript.vim b/test/old/testdir/test_vimscript.vim index b5578f7f68..81ccee9f13 100644 --- a/test/old/testdir/test_vimscript.vim +++ b/test/old/testdir/test_vimscript.vim @@ -7267,7 +7267,7 @@ func Test_typed_script_var() endfunc " Test for issue6776 {{{1 -func Test_trinary_expression() +func Test_ternary_expression() try call eval('0 ? 0') catch