Skip to content

Commit dafdd45

Browse files
committed
re-add paragraph on testing
1 parent 79dda5d commit dafdd45

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

vim9script.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,19 @@ def GitDiffQuickfix()
552552
enddef
553553
command! GitDiffQF call GitDiffQuickfix()
554554
555-
####################################################
556-
## 9. Debugging, Compiling and Inspecting Bytecode
557-
####################################################
555+
############################################################
556+
## 9. Testing, Debugging, Compiling and Inspecting Bytecode
557+
############################################################
558+
559+
v:errors = []
560+
561+
assert_equal(4, 2 + 2)
562+
assert_false(2 < 1)
563+
assert_notmatch('\d\+', 'abc')
564+
565+
if !empty(v:errors)
566+
echo $"Test failures: {v:errors}"
567+
endif
558568
559569
def MyFunc()
560570
var x = 10

0 commit comments

Comments
 (0)