mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
re-add paragraph on testing
This commit is contained in:
parent
ab0f4f9bd0
commit
9d3513666d
@ -552,9 +552,19 @@ def GitDiffQuickfix()
|
|||||||
enddef
|
enddef
|
||||||
command! GitDiffQF call GitDiffQuickfix()
|
command! GitDiffQF call GitDiffQuickfix()
|
||||||
|
|
||||||
####################################################
|
############################################################
|
||||||
## 9. Debugging, Compiling and Inspecting Bytecode
|
## 9. Testing, Debugging, Compiling and Inspecting Bytecode
|
||||||
####################################################
|
############################################################
|
||||||
|
|
||||||
|
v:errors = []
|
||||||
|
|
||||||
|
assert_equal(4, 2 + 2)
|
||||||
|
assert_false(2 < 1)
|
||||||
|
assert_notmatch('\d\+', 'abc')
|
||||||
|
|
||||||
|
if !empty(v:errors)
|
||||||
|
echo $"Test failures: {v:errors}"
|
||||||
|
endif
|
||||||
|
|
||||||
def MyFunc()
|
def MyFunc()
|
||||||
var x = 10
|
var x = 10
|
||||||
|
Loading…
Reference in New Issue
Block a user