September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
11
Task/Test-a-function/Zkl/test-a-function-3.zkl
Normal file
11
Task/Test-a-function/Zkl/test-a-function-3.zkl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
tester:=TheVault.Test.UnitTester.UnitTester(__FILE__);
|
||||
fcn pali(text){
|
||||
if (text.len()<2) return(False);
|
||||
text==text.reverse();
|
||||
}
|
||||
tester.testRun(pali.fp("red rum sir is murder" - " "), Void,True,__LINE__);
|
||||
tester.testRun(pali.fp("red rum sir is murder"), Void,True,__LINE__); //bad test
|
||||
tester.testSrc("var R=(1+2)",Void,Void,3,__LINE__); // you can test source too
|
||||
|
||||
tester.stats();
|
||||
returnClass(tester);
|
||||
Loading…
Add table
Add a link
Reference in a new issue