Differences between revisions 12 and 19 (spanning 7 versions)
Revision 12 as of 2015-02-03 11:38:13
Size: 1768
Editor: KaiJaeger
Comment:
Revision 19 as of 2016-08-19 10:38:54
Size: 1349
Editor: anonymous
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 6: Line 8:
<<TableOfContents>>

Describe the problem to be solved here.
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 11: Line 11:
      Put the phrase here       +/
Line 13: Line 13:

[[CategoryAPLTree]]
Line 18: Line 16:
/* Add proper examples here, and don't forget to fix a sample function changing "!PhraseName" accordingly */
Line 20: Line 17:
      ⎕FX⊃'r←[?] PhraseName ?' 'r←....'
      Display PhraseName array
      ⎕FX⊃'r←Sum na' 'r←+/na'
      Display Sum 1 2 3
6
      Di
splay Sum 2 3 4⍴⍳24
6
Line 23: Line 23:

== Specialities ==
....
/* Add special remarks for specific dialects here, for example the mentioning of a system function solving the problem goes here */

== Compatibility ==

Checked with: /* APL2, APLX, APL+Win, Dyalog, NARS2000 - Add as many as you can/like */
Line 42: Line 34:
 ⎕FX'r←[larg] PhraseName rarg' 'r←phrase'  ⎕FX'r←Sum na' 'r←+/na'
Line 44: Line 36:
 /* expectedResult ≡ statement */  1
 1 ≡ Sum 1 2 3
 1 ≡ Sum 1
 0 ≡ Sum ⍳0
Line 46: Line 41:
Line 50: Line 44:
See also: ... /* Add proper Wiki names. The pages do not necessarily must exist. If they don't they will show up on WantedPages and that's just fine */ [[http://aplwiki.com:49991/phrasebook?action=CheckCode&page=TestPage | Test my code]]
Line 52: Line 46:
Mentor: AplWiki:JohnDoe  /* Replace by your name */ Mentor: AplWiki:KaiJaeger
Line 55: Line 49:
CategoryPhrasesAll /* Don't forget to add more categories. If they do not exist so far that's fine - someone will take care */ 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

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'
⍝ ---- Start Test cases (do not delete this!)
 1 
 1 ≡ Sum 1 2 3
 1 ≡ Sum 1 
 0 ≡ Sum ⍳0

For details see the TestCasesGuidelines.

Test my code

Mentor: KaiJaeger


CategoryListAll

TestPage (last edited 2016-08-19 10:39:35 by KaiJaeger)