Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
274 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.acre/ | ||
aplcore | ||
Dist/ | ||
change_history/ | ||
.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{r}←Initialize;⎕TRAP | ||
⎕TRAP←0 'S' | ||
r←⍬ | ||
{}⎕SE.UCMD'cd ',AcreConfig.ProjectFolder | ||
⎕SE.aplteam.InitializeAPLTreeProject ⎕THIS | ||
⍝Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Cleanup | ||
#.⎕EX'INI' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
Prepare | ||
⎕IO←1 ⋄ ⎕ML←1 | ||
T←⎕NEW ##.Tester2 ⎕THIS | ||
T.codeCoverage←⎕NEW ##.CodeCoverage(,⊂'#.',{⍵,'.',⍵}2↓⍕⎕THIS.##) | ||
T.codeCoverage.filename←(⊃1 ⎕NPARTS''),'TestResults/CodeCoverage' | ||
a←1 | ||
⍝Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
:Namespace QuadVariables | ||
##.⎕IO←0 | ||
##.⎕ML←3 | ||
##.⎕ML←1 | ||
##.⎕WX←3 | ||
:EndNamespace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
RunTests;dcfFilename;htmlFilename;tno | ||
Prepare | ||
dcfFilename←(⊃,/¯1↓⎕NPARTS T.codeCoverage.filename),'.dcf' | ||
:If ##.FilesAndDirs.IsFile dcfFilename | ||
:AndIf ∆YesOrNo'CodeCovarge data file already exists; override?' | ||
tno←dcfFilename ⎕FTIE 0 | ||
dcfFilename ⎕FERASE tno | ||
:EndIf | ||
T.Run 1 | ||
htmlFilename←##.CodeCoverage.ProcessDataAndCreateReport T.codeCoverage.filename | ||
##.APLTreeUtils2.GoToWebPage'file://',htmlFilename | ||
⍝Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
R←Test_030(stopFlag batchFlag);⎕TRAP;info | ||
⍝ Exercise `##.WinSys.GetDiskFreeSpace` | ||
R←T._Failed | ||
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N') | ||
|
||
info←##.WinSys.GetDiskFreeSpace'C' | ||
→T.PassesIf 0∧.<info | ||
|
||
info←##.WinSys.GetDiskFreeSpace'C:' | ||
→T.PassesIf 0∧.<info | ||
|
||
R←T._OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
yesOrNo←{default}∆YesOrNo question;isOkay;answer;add;dtb;answer2 | ||
⍝ Ask a simple question and allows just "Yes" or "No" as answers. | ||
⍝ You may specify a default via the optional left argument which when specified | ||
⍝ rules what happens when the user just presses <enter>. | ||
⍝ `default` must be either 1 (yes) or 0 (no). | ||
⍝ Note that this function does not work as expected when traced! | ||
isOkay←0 | ||
default←{0<⎕NC ⍵:⍎⍵ ⋄ ''}'default' | ||
isOkay←0 | ||
:If ~0∊⍴default | ||
'Left argument must be a scalar'⎕SIGNAL 11/⍨1≠⍴,default | ||
:AndIf ~default∊0 1 | ||
'The left argument. if specified, must be a Boolean or empty'⎕SIGNAL 11 | ||
:EndIf | ||
:If 0=≢default | ||
add←' (y/n) ' | ||
:Else | ||
:If default | ||
add←' (Y/n) ' | ||
:Else | ||
add←' (y/N) ' | ||
:EndIf | ||
:EndIf | ||
:If 1<≡question | ||
((⍴question)⊃question)←((⍴question)⊃question),add | ||
question←⍪question | ||
:Else | ||
question←question,add | ||
:EndIf | ||
:Repeat | ||
⍞←question | ||
answer←⍞ | ||
:If answer≡question ⍝ Did... (since version 18.0 trailing blanks are not removed anynmore) | ||
:OrIf (≢answer)=¯1+≢question ⍝ ..the ... | ||
:OrIf 0=≢answer ⍝ ...user just... | ||
dtb←{⍵↓⍨-+/∧\' '=⌽⍵} | ||
answer2←dtb answer | ||
:OrIf answer2≡((-≢answer2)↑(⎕UCS 10){~⍺∊⍵:⍵ ⋄ ' ',dtb ⍺{⌽⍵↑⍨1+⍵⍳⍺}⌽⍵}question) ⍝ ...press <enter>? | ||
:If 0≠≢default | ||
yesOrNo←default | ||
isOkay←1 | ||
:EndIf | ||
:Else | ||
answer←¯1↑{⍵↓⍨-+/∧\' '=⌽⍵}answer | ||
:If answer∊'YyNn' | ||
isOkay←1 | ||
yesOrNo←answer∊'Yy' | ||
:EndIf | ||
:EndIf | ||
:Until isOkay | ||
⍝Done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.