Jump to content

Unit testing: Difference between revisions

→‎Insitux: attempt to use <syntaxhighlight ... line>
(→‎Insitux: inclusion)
(→‎Insitux: attempt to use <syntaxhighlight ... line>)
Line 26:
Alongside assertions and mocking available in pure Insitux (see [https://www.rosettacode.org/wiki/Test_a_function#Insitux Test a function]), the Node.js REPL has the ability to generate a code coverage report of unvisited lines and columns, useful for writing thorough unit tests. Here is a basic demonstration:
 
<syntaxhighlight lang="insitux" line>
(function subject x y z
(return-unless (num? x) x)
112

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.