-
Notifications
You must be signed in to change notification settings - Fork 0
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
41 changed files
with
6,026 additions
and
75 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,2 +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
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,10 @@ | ||
{r}←Initialize;⎕TRAP;parent | ||
⎕TRAP←0 'S' | ||
r←⍬ | ||
{}⎕SE.UCMD'cd ',AcreConfig.ProjectFolder | ||
⎕WSID←AcreConfig.ProjectFolder,'project.dws' | ||
parent←⍕⎕THIS | ||
{}⎕SE.Tatin.LoadDependencies'./packages/'parent | ||
parent,←'.TestCases' | ||
{}⎕SE.Tatin.LoadDependencies'./packages_dev/'parent | ||
⍝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,2 +1,18 @@ | ||
Prepare | ||
T←⎕NEW ##.Tester2 ⎕THIS | ||
Prepare;testPath;testFilename;ask;answer | ||
⎕IO←1 ⋄ ⎕ML←1 | ||
T←⎕NEW Tester2 ⎕THIS | ||
testPath←(⊃1 ⎕NPARTS''),'TestResults' | ||
testFilename←testPath,'/CodeCoverage' | ||
:If ⎕NEXISTS testPath | ||
:If ⎕NEXISTS testFilename,'.dcf' | ||
ask←{⎕←⍵,'; 1=append, 2=replace' ⋄ a←⎕ ⋄ ~(⊂a)∊1 2:∇ ⍵ ⋄ ⊃a} | ||
answer←⊃ask'Coverage file already exists' | ||
:If 2≡answer | ||
1 ⎕NDELETE testFilename,'.dcf' | ||
:EndIf | ||
:EndIf | ||
:EndIf | ||
3 ⎕MKDIR testPath ⍝ | ||
T.codeCoverage←⎕NEW CodeCoverage(,⊂'#.',{⍵,'.',⍵}2↓⍕⎕THIS.##) | ||
T.codeCoverage.filename←testFilename | ||
⍝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,8 @@ | ||
RunTests;htmlFilename | ||
Prepare | ||
T.Run 1 | ||
htmlFilename←CodeCoverage.ProcessDataAndCreateReport T.codeCoverage.filename | ||
:If 1 ∆YesOrNo'View CodeCoverage report?' | ||
APLTreeUtils2.GoToWebPage'file://',htmlFilename | ||
:EndIf | ||
⍝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 was deleted.
Oops, something went wrong.
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 |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.