set printexpr=PrintFile(v:fname_in)
help help
- hardcopy dummy args
+ hardcopy! dummy args
call assert_equal(['Test printexpr: dummy args'],
\ readfile('Xhardcopy_printexpr'))
call delete('Xhardcopy_printexpr')
return 1
endfunc
set printexpr=PrintFails(v:fname_in)
- call assert_fails('hardcopy', 'E365:')
+ call assert_fails('hardcopy!', 'E365:')
" Using a script-local function
func s:NewPrintExpr()
HasPostscript
new
- call assert_equal("\nNo text to be printed", execute('hardcopy'))
+ call assert_equal("\nNo text to be printed", execute('hardcopy!'))
bwipe
endfunc