From dafdd45dc88263ba1b91c7f3ef8b0fcc492da9c8 Mon Sep 17 00:00:00 2001 From: Konfekt Date: Sat, 19 Apr 2025 03:50:36 +0200 Subject: [PATCH] re-add paragraph on testing --- vim9script.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/vim9script.md b/vim9script.md index c5675836..6145f6ec 100644 --- a/vim9script.md +++ b/vim9script.md @@ -552,9 +552,19 @@ def GitDiffQuickfix() enddef 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() var x = 10