-
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.
File extension is now .aplc rather than .dyalog
- Loading branch information
Showing
26 changed files
with
257 additions
and
46 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
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 @@ | ||
Assert←{⍺←'' ⋄ (,1)≡,⍵:r←1 ⋄ ⎕ML←3 ⋄ ⍺ ⎕SIGNAL 1↓(↑∊⍵),11} |
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_002.aplf → APLSource/TestCases/Test_GetRelease_005.aplf
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
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_007.aplf → APLSource/TestCases/Test_GetRelease_006.aplf
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
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_009.aplf → APLSource/TestCases/Test_GetRelease_007.aplf
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,17 @@ | ||
R←Test_Issue_010(stopFlag batchFlag);⎕TRAP;data;more;rc | ||
⍝ Get a list with all issues of a given repository of the current owner with `GetAllIssues`. | ||
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N') | ||
R←T._Failed | ||
|
||
(rc more data)←∆MyGitHubAPI.GetAllIssues'TestRepo' | ||
→T.PassesIf 0=rc | ||
→T.PassesIf 0=≢more | ||
→T.PassesIf 1=⍴⍴data.∆List | ||
→T.PassesIf∧/2∧.=¨⍴∘⍴¨data.∆List | ||
→T.PassesIf 1=⍴⍴data.∆Details ∆MyGitHubAPI | ||
→T.PassesIf∧/2∧.=¨⍴∘⍴¨data.∆Details ∆MyGitHubAPI | ||
→T.PassesIf 1=⍴⍴data.∆QuickView ∆MyGitHubAPI | ||
→T.PassesIf∧/2∧.=¨⍴∘⍴¨data.∆QuickView ∆MyGitHubAPI | ||
|
||
R←T._OK | ||
⍝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,14 @@ | ||
R←Test_Issue_020(stopFlag batchFlag);⎕TRAP;data;more;rc | ||
⍝ Get a single issue of a given repository for the current owner with `GetIssue`. | ||
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N') | ||
R←T._Failed | ||
|
||
(rc more data)←∆MyGitHubAPI.GetIssue'TestRepo' 2 | ||
→T.PassesIf 0=rc | ||
→T.PassesIf 0=≢more | ||
→T.PassesIf 2=⍴⍴data.∆List | ||
→T.PassesIf 2=⍴⍴data.∆Details ∆MyGitHubAPI | ||
→T.PassesIf 6 2≡⍴data.∆QuickView ∆MyGitHubAPI | ||
|
||
R←T._OK | ||
⍝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,25 @@ | ||
R←Test_Issue_030(stopFlag batchFlag);⎕TRAP;data;more;rc;parms | ||
⍝ Add an issue; exercises `CreateIssueParms` and `CreateIssue` | ||
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N') | ||
|
||
:If 1 | ||
R←T._Inactive ⍝ Not implemented yet | ||
:Return | ||
:EndIf | ||
|
||
R←T._Failed | ||
|
||
parms←∆MyGitHubAPI.CreateIssueParms | ||
parms.title←⊃⎕SI | ||
parms.assignees←⊂'aplteam' | ||
parms.labels←'duplicate' 'invalid' 'Foo' | ||
(rc more data)←∆MyGitHubAPI.CreateIssue'TestRepo'parms | ||
⎕SE.APLGit.Commit'' | ||
→T.PassesIf 0=rc | ||
→T.PassesIf 0=≢more | ||
→T.PassesIf 2=⍴⍴data.∆List | ||
→T.PassesIf 2=⍴⍴data.∆Details ∆MyGitHubAPI | ||
→T.PassesIf 6 2≡⍴data.∆QuickView ∆MyGitHubAPI | ||
|
||
R←T._OK | ||
⍝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,15 @@ | ||
R←Test_Issue_040(stopFlag batchFlag);⎕TRAP;data;more;rc;parms | ||
⍝ Update an issue; exercises `UpdateIssue` | ||
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N') | ||
|
||
:If 1 | ||
R←T._Inactive ⍝ Not implemented yet | ||
:Return | ||
:EndIf | ||
|
||
R←T._Failed | ||
|
||
∘∘∘ ⍝TODO⍝ | ||
|
||
R←T._OK | ||
⍝Done |
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_004.aplf → APLSource/TestCases/Test_Misc_001.aplf
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
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_006.aplf → APLSource/TestCases/Test_Misc_010.aplf
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
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_008.aplf → APLSource/TestCases/Test_Misc_020.aplf
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
4 changes: 2 additions & 2 deletions
4
APLSource/TestCases/Test_018.aplf → APLSource/TestCases/Test_Misc_030.aplf
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
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_019.aplf → APLSource/TestCases/Test_Misc_040.aplf
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
2 changes: 1 addition & 1 deletion
2
APLSource/TestCases/Test_021.aplf → APLSource/TestCases/Test_Misc_050.aplf
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,13 @@ | ||
R←Test_Topic_010(stopFlag batchFlag);⎕TRAP;data;more;rc | ||
⍝ Request a list of all topcis assigned to the "TestRep" repository | ||
⎕TRAP←(999 'C' '. ⍝ Deliberate error')(0 'N') | ||
R←T._Failed | ||
|
||
(rc more data)←∆MyGitHubAPI.GetAllTopics'TestRepo' | ||
→T.PassesIf 0=rc | ||
→T.PassesIf 0=≢more | ||
→T.PassesIf 2=≡data | ||
→T.PassesIf 0<≢data | ||
|
||
R←T._OK | ||
⍝Done |
Oops, something went wrong.