Differences between revisions 3 and 19 (spanning 16 versions)
Revision 3 as of 2008-08-27 19:27:00
Size: 919
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 Known:read,write,delete All:read
#language en
#pragma section-numbers off
= Test Page =
#acl AutoAdminGroup:read,write,admin,delete,revert All:read
Line 6: Line 3:
||<tablestyle="float:right; font-weight: bold; text-align:center;">New authors||
||<style="background:#ffe; padding:1em; text-align:left;">To become an author, create an account first||
<<Include(GetNameTable)>>
Line 9: Line 5:
What is this about? /* replace TestPage by a proper & meaningful Wiki name */
= TestPage =
Line 11: Line 8:
This page is a sandbox where you can play around and get some experiences with MoinMoin, the software used to run the APL Wiki. 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 13: Line 10:
BeginnersStartHere {{{
      +/
}}}
Line 15: Line 14:
If you want to learn about Wikis in general, klick MoreAboutWikis == Examples ==
Line 17: Line 16:
The followng pages demonstrate typical markups in the APL wiki: {{{
      ⎕FX⊃'r←Sum na' 'r←+/na'
      Display Sum 1 2 3
6
      Display Sum 2 3 4⍴⍳24
6
}}}
Line 19: Line 24:
ExampleNumber1 (read-only) == Test Cases ==
/* Replace "PhraseName" accordingly */
<<SeeSaw(section="test", toshow="<<Show>> test cases", tohide="<<Hide>> test cases", bg="#FEE1A5", speed="Slow")>>
{{{{#!wiki seesaw/test/test/hide
/* Note that the test cases are executed AUTOMATICALLY. It is therefore very important to stick with the pattern */
Line 21: Line 30:
ExampleNumber2 (read-only) {{{
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.
}}}}
Line 23: Line 44:
ExampleNumber3 (read-only) [[http://aplwiki.com:49991/phrasebook?action=CheckCode&page=TestPage | Test my code]]
Line 25: Line 46:
ScanOperator (read-only) Mentor: AplWiki:KaiJaeger
Line 27: Line 48:
-----

Feel free to change pages listed here. To create a new link write something in Camel``Case. Clicking onto the link then allows you to create a new page.

TestPage1

TestPage2

TestPage3
----
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)