Skip to content

Commit 95bc2ec

Browse files
chore(testing): add test for right aligned code block
1 parent ba50c2f commit 95bc2ec

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

tests/code_spec.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,48 @@ describe('code', function()
226226
' ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀',
227227
})
228228
end)
229+
230+
it('block right thin', function()
231+
util.setup.text(lines, {
232+
code = {
233+
width = 'block',
234+
position = 'right',
235+
border = 'thin',
236+
language_border = '',
237+
language_left = '',
238+
language_right = '',
239+
above = '',
240+
below = '',
241+
},
242+
})
243+
util.assert_screen({
244+
'󱘗 ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█󱘗 rust█',
245+
' fn main() {',
246+
' println!("Hello, World!");',
247+
' }',
248+
' ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔',
249+
'',
250+
' ● List Divider',
251+
'',
252+
'󰌠 ▁▁▁▁▁▁▁▁█󰌠 py█',
253+
' print("hello")',
254+
'',
255+
' print("world")',
256+
' ▔▔▔▔▔▔▔▔▔▔▔▔▔▔',
257+
'',
258+
' Paragraph Divider',
259+
'',
260+
'󰢱 ▁▁▁▁▁▁▁▁▁█󰢱 lua█',
261+
" print('hello')",
262+
'',
263+
" print('world')",
264+
' ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔',
265+
'',
266+
' ● List Divider',
267+
'',
268+
' ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁',
269+
" print('Hello, World!')",
270+
' ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔',
271+
})
272+
end)
229273
end)

0 commit comments

Comments
 (0)