view src/testdir/test108.ok @ 15172:de7e90fb445c v8.1.0596

patch 8.1.0596: not all parts of printf() are tested commit https://github.com/vim/vim/commit/21e551cce26ea6ff389b6c90f1945facf1a8a066 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 15 16:08:56 2018 +0100 patch 8.1.0596: not all parts of printf() are tested Problem: Not all parts of printf() are tested. Solution: Add a few more test cases. (Dominique Pelle, closes https://github.com/vim/vim/issues/3691)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Dec 2018 16:15:05 +0100
parents a527110d5f56
children
line wrap: on
line source




- show backtrace:

  2 function Foo[2]
  1 Bar[2]
->0 Bazz
line 2: let var3 = "another var"

show variables on different levels:

6
  2 function Foo[2]
->1 Bar[2]
  0 Bazz
line 2: let var3 = "another var"
3
->2 function Foo[2]
  1 Bar[2]
  0 Bazz
line 2: let var3 = "another var"
1

- undefined vars:

undefined var3 on former level:
Error detected while processing function Foo[2]..Bar[2]..Bazz:
line    3:
E121: Undefined variable: var3
here var3 is defined with "another var":
another var

undefined var2 on former level
Error detected while processing function Foo[2]..Bar:
line    3:
E121: Undefined variable: var2
here var2 is defined with 10:
10

- backtrace movements:

  1 function Foo[2]
->0 Bar
line 3: End of function

next command cannot go down, we are on bottom

frame is zero

next command cannot go up, we are on top

frame at highest level: 1
->1 function Foo[2]
  0 Bar
line 3: End of function
fil is not frame or finish, it is file
"[No Name]" --No lines in buffer--

- relative backtrace movement

  1 function Foo[2]
->0 Bar
line 3: End of function
->1 function Foo[2]
  0 Bar
line 3: End of function

- go beyond limits does not crash

frame at highest level: 1
->1 function Foo[2]
  0 Bar
line 3: End of function
frame is zero
  1 function Foo[2]
->0 Bar
line 3: End of function

- final result 19:
19