Size: 945
Comment: Moved to test.aplwiki.com
|
← Revision 20 as of 2016-08-19 10:39:35 ⇥
Size: 1344
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#acl AutoAdminGroup:read,write,admin,delete,revert All:read |
|
Line 3: | Line 5: |
/* replace TestPage by a proper & meaningful Wiki name */ | |
Line 5: | Line 8: |
The only purpose of this page is to provide some problems for the ACEX (automated code executioner) which will make it to the TestReport. | Note that this page exists in order to test the automated tests of both, examples and test cases on all phrase pages. For that reason this page contains buggy examples and buggy test cases |
Line 8: | Line 11: |
''⍴0 | +/ |
Line 14: | Line 17: |
⎕FX'r←Do y' 'r←''''⍴⊂y' Do 2 1⍴'Kai' 'thomas' Kai thomas |
⎕FX⊃'r←Sum na' 'r←+/na' Display Sum 1 2 3 6 Display Sum 2 3 4⍴⍳24 6 |
Line 21: | Line 25: |
/* Replace "NameOfYourChoice" accordingly */ | /* Replace "PhraseName" accordingly */ |
Line 24: | Line 28: |
/* Note that the test cases are executed AUTOMATICALLY */ /* It is therefore very important to stick with the pattern! */ /* In doubt? Email me at kai@aplteam.com */ |
/* Note that the test cases are executed AUTOMATICALLY. It is therefore very important to stick with the pattern */ |
Line 28: | Line 31: |
Test;Do ⎕IO←0 ⎕FX'r←Do y' 'r←⍬⍴⊂y' |
Test ⎕IO←0 ⍝ You may change this; however, zero IS the default in the Phrasebook Wiki ⍝⎕ML←3 ⍝ Enable this line in Dyalog APL if appropriate ⎕FX'r←Sum na' 'r←+/na' |
Line 32: | Line 36: |
''≡Do'' ' '≡Do' ' 'APL'≡Do' APL' ' '≡Do' ' 1 2 3≡Do 1 2 3 |
1 ≡ Sum 1 2 3 1 ≡ Sum 1 0 ≡ Sum ⍳0 |
Line 38: | Line 40: |
For details see the TestCasesGuidelines. | |
Line 40: | Line 43: |
[[http://aplwiki.com:49991/phrasebook?action=CheckCode&page=TestPage | Test my code]] Mentor: AplWiki:KaiJaeger |
|
Line 41: | Line 48: |
CategoryListAll | CategoryListAll |
TestPage
Note that this page exists in order to test the automated tests of both, examples and test cases on all phrase pages. For that reason this page contains buggy examples and buggy test cases
+/
Examples
⎕FX⊃'r←Sum na' 'r←+/na' Display Sum 1 2 3 6 Display Sum 2 3 4⍴⍳24 6
Test Cases
Show test cases
Mentor: KaiJaeger