diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:29 +0100 |
commit | 04f2f864e270e772c6326cefdf24947f0130e492 (patch) | |
tree | 46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/debugger_spec.lua | |
parent | 59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff) | |
download | rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2 rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip |
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/debugger_spec.lua')
-rw-r--r-- | test/functional/legacy/debugger_spec.lua | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/test/functional/legacy/debugger_spec.lua b/test/functional/legacy/debugger_spec.lua index 65f6bd7221..7ed5e84da6 100644 --- a/test/functional/legacy/debugger_spec.lua +++ b/test/functional/legacy/debugger_spec.lua @@ -13,8 +13,8 @@ describe('debugger', function() before_each(function() screen = Screen.new(999, 10) screen:set_default_attr_ids({ - [0] = {bold = true, foreground = Screen.colors.Blue}; - [1] = {reverse = true, bold = true}; + [0] = { bold = true, foreground = Screen.colors.Blue }, + [1] = { reverse = true, bold = true }, }) screen:attach() end) @@ -30,13 +30,16 @@ describe('debugger', function() command(':let g:Xtest_var = 10') command(':breakadd expr g:Xtest_var') feed(':source %<CR>') - screen:expect{grid=[[ + screen:expect { + grid = [[ ^let g:Xtest_var += 1{MATCH: *}| {0:~{MATCH: *}}|*8 :source %{MATCH: *}| - ]]} + ]], + } feed(':source %<CR>') - screen:expect{grid=[[ + screen:expect { + grid = [[ let g:Xtest_var += 1{MATCH: *}| {0:~{MATCH: *}}| {1:{MATCH: *}}| @@ -47,15 +50,19 @@ describe('debugger', function() {MATCH:.*}XdebugBreakExpr.vim{MATCH: *}| line 1: let g:Xtest_var += 1{MATCH: *}| >^{MATCH: *}| - ]]} + ]], + } feed('cont<CR>') - screen:expect{grid=[[ + screen:expect { + grid = [[ ^let g:Xtest_var += 1{MATCH: *}| {0:~{MATCH: *}}|*8 {MATCH: *}| - ]]} + ]], + } feed(':source %<CR>') - screen:expect{grid=[[ + screen:expect { + grid = [[ let g:Xtest_var += 1{MATCH: *}| {0:~{MATCH: *}}| {1:{MATCH: *}}| @@ -66,6 +73,7 @@ describe('debugger', function() {MATCH:.*}XdebugBreakExpr.vim{MATCH: *}| line 1: let g:Xtest_var += 1{MATCH: *}| >^{MATCH: *}| - ]]} + ]], + } end) end) |