Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Test-a-function/Zkl/test-a-function-1.zkl
Normal file
4
Task/Test-a-function/Zkl/test-a-function-1.zkl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
fcn pali(text){
|
||||
if (text.len()<2) return(False);
|
||||
text==text.reverse();
|
||||
}
|
||||
3
Task/Test-a-function/Zkl/test-a-function-2.zkl
Normal file
3
Task/Test-a-function/Zkl/test-a-function-2.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
tester:=TheVault.Test.UnitTester.UnitTester(__FILE__);
|
||||
// spaces make this not a palindrome
|
||||
tester.testRun(pali.fp("red rum sir is murder"), Void,False,__LINE__);
|
||||
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);
|
||||
1
Task/Test-a-function/Zkl/test-a-function-4.zkl
Normal file
1
Task/Test-a-function/Zkl/test-a-function-4.zkl
Normal file
|
|
@ -0,0 +1 @@
|
|||
zkl paliTest.zkl
|
||||
1
Task/Test-a-function/Zkl/test-a-function-5.zkl
Normal file
1
Task/Test-a-function/Zkl/test-a-function-5.zkl
Normal file
|
|
@ -0,0 +1 @@
|
|||
zkl Test.testThemAll -- paliTest.zkl
|
||||
Loading…
Add table
Add a link
Reference in a new issue