Skip to content

Commit 1a2f0fc

Browse files
committed
New version of <CommTools>; important for version 20.0
1 parent 88047ea commit 1a2f0fc

File tree

9 files changed

+28
-25
lines changed

9 files changed

+28
-25
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ conga.crash
77
/packages_dev/*
88
!/packages_dev/apl-dependencies.txt
99
!/packages_dev/apl-buildlist.json
10-
/Dist/
11-
/TestResults/
10+
/Dist/

APLSource/Tester2.aplc

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
4242

4343
∇ r←History
44-
:Access Public shared
44+
:Access Public shared
45+
⍝ * 4.4.0 ⋄ 2026-02-06
46+
⍝ * Packages updated (CommTools!)
4547
⍝ * 4.3.0 ⋄ 2025-09-13
4648
⍝ * Packages updated
4749
⍝ * 4.2.0 ⋄ 2025-06-05
@@ -570,7 +572,7 @@
570572
:EndIf
571573
:If ps.guiFlag
572574
:AndIf {6::1 ⋄ 0⊣⍵.Type}ps.ref2Gui.∆n.Form
573-
←'*** Tests cancelled'
575+
←'*** Tests cancelled',⎕UCS 10
574576
log←ps.log
575577
→0
576578
:EndIf
@@ -589,7 +591,7 @@
589591
:EndIf
590592
:If 0<≢_codeCoverage
591593
:If 0=≢res←_codeCoverage.Finalise 1
592-
←'Coverage report: nothing to report'
594+
←'Coverage report: nothing to report',⎕UCS 10
593595
:Else
594596
ShowLog'Coverage report: ',res
595597
:EndIf
@@ -873,8 +875,8 @@
873875
:If (⊂rc)∊ListCustomMessages[;2] ⍝ Is it a valid custom message?
874876
rc←-⍎¯1↑ListSymbolicNames{⊃⍺[1⍳⍨⍺[;2]≡¨⊂⍵;]}rc ⍝ Translate custom msg into return code
875877
:Else
876-
←'Current test function (',testFns,')'
877-
←'returned an invalid result: neither a valid numeric code (symbolic name) nor a custom message'
878+
←'Current test function (',testFns,')',⎕UCS 10
879+
←'returned an invalid result: neither a valid numeric code (symbolic name) nor a custom message',⎕UCS 10
878880
∘∘∘
879881
:EndIf
880882
:EndIf
@@ -940,7 +942,7 @@
940942
:If 0<ps.stop
941943
:AndIf 1⊃⌽(8⍴2)⊤⊃ps.stop
942944
(∪(⎕STOP fns),StopHere)⎕STOP fns
943-
←'About to execute <',(⍕_ref),'.',fnsName,'> ...'
945+
←'About to execute <',(⍕_ref),'.',fnsName,'> ...',⎕UCS 10
944946
:Else
945947
((⎕STOP fns)~StopHere)⎕STOP fns
946948
:EndIf
@@ -1028,7 +1030,7 @@
10281030
⍎_exec_before_each_test,' fnsName ps'
10291031
:Else
10301032
:If 0<≢buff←⍎_exec_before_each_test,' fnsName ps'
1031-
←buff
1033+
←buff,⎕UCS 10
10321034
:EndIf
10331035
:EndIf
10341036
:EndIf
@@ -1041,7 +1043,7 @@
10411043
⍎_exec_after_each_test,' fnsName ps'
10421044
:Else
10431045
:If 0<≢buff←⍎_exec_after_each_test,' fnsName ps'
1044-
←buff
1046+
←buff,⎕UCS 10
10451047
:EndIf
10461048
:EndIf
10471049
:EndIf
@@ -1102,13 +1104,14 @@
11021104
:EndIf
11031105
:If ~ps.guiFlag
11041106
:If type=3
1105-
⎕←⊃¯1↑ps.log
1107+
⍞←⊃¯1↑ps.log
1108+
⍞←⎕UCS 10
11061109
:ElseIf ¯1≠×type
11071110
selog←{1=≡⍵:⍵ ⋄ (3≠≢⍵)∨'---'≡3↑⊃⍵:⍪⍵ ⋄ (1⊃⍵),' ',(2⊃⍵),' ',(3⊃⍵)}msg
11081111
:If type<0
11091112
⍞←selog,(type=¯2)/CR
11101113
:Else
1111-
←selog
1114+
←selog,⎕UCS 10
11121115
:EndIf
11131116
:EndIf
11141117
:EndIf
@@ -1696,14 +1699,14 @@
16961699
cl.Text←2↓⊃,/(⊂CRLF),¨body
16971700
:Return
16981701
:Else
1699-
←'No action taken' ⋄ →0
1702+
←'No action taken',⎕UCS 10 ⋄ →0
17001703
:EndIf
17011704
:Else
17021705
_ref.⎕FX body
17031706
:EndIf
17041707
:If ∨/IsLinked _ref
1705-
←'You might want to tell Link:'
1706-
←']Link.Add ',(⍕_ref),'.',newName
1708+
←'You might want to tell Link:',⎕UCS 10
1709+
←']Link.Add ',(⍕_ref),'.',newName,⎕UCS 10
17071710
:EndIf
17081711
17091712

@@ -1720,7 +1723,7 @@
17201723
:EndIf
17211724
'Cannot establish helpers in class instances/unnamed namespaces'Assert~'['∊⍕ref
17221725
:If 3=+/ref.⎕NC↑'Prepare' 'RunTests' 'RunTestsInBatchMode'
1723-
←'Prepare, RunTests and RunTestsInBatchMode are all already established in ',⍕ref
1726+
←'Prepare, RunTests and RunTestsInBatchMode are all already established in ',(⍕ref),⎕UCS 10
17241727
:Else
17251728
:If force
17261729
:OrIf YesOrNo'Helpers@Sure you wanna establish three helpers "Prepare", "RunTests" & "RunTestsInBatchMode" in ',(⍕ref),' ?'
@@ -1735,8 +1738,8 @@
17351738
r,←CR,'⍝ ⎕SE.Link.Add ',⊃,/('''','.',⍨⍕ref)∘,¨'Prepare'' ' 'RunTests'' ' 'RunTestsInBatchMode'' '
17361739
:EndIf
17371740
:If IsLinked ref
1738-
←'You might want to tell Link:'
1739-
←']Link.Add ',⊃,/(⊂⍕ref),¨'.Prepare ' '.RunTests ' '.RunTestsInBatchMode'
1741+
←'You might want to tell Link:',⎕UCS 10
1742+
←']Link.Add ',(⊃,/(⊂⍕ref),¨'.Prepare ' '.RunTests ' '.RunTestsInBatchMode'),⎕UCS 10
17401743
:EndIf
17411744
:EndIf
17421745
@@ -1859,7 +1862,7 @@
18591862
:EndIf
18601863
:EndIf
18611864
:Else
1862-
←'Incompatible version of Link detected; we need 3.0.0 or better'
1865+
←'Incompatible version of Link detected; we need 3.0.0 or better',⎕UCS 10
18631866
:EndIf
18641867
18651868

@@ -2031,7 +2034,7 @@
20312034
:If 3>option
20322035
verbose←2=option
20332036
htmlFilename←verbose CodeCoverage.CreateReport T.codeCoverage.filename
2034-
←']Open file://',htmlFilename
2037+
←']Open file://',htmlFilename,⎕UCS 10
20352038
:EndIf
20362039
:EndIf
20372040

TestResults/CodeCoverage.cr

181 KB
Binary file not shown.

TestResults/CodeCoverage.profile

19.9 KB
Binary file not shown.

apl-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
api: "Tester2",
33
assets: "html/",
4+
checkLICENSEfile: 1,
45
description: "Dyalog APL test framework",
56
documentation: "",
67
files: "",
@@ -19,5 +20,5 @@
1920
source: "APLSource/Tester2.aplc",
2021
tags: "test,test-framework",
2122
userCommandScript: "",
22-
version: "4.3.0+66",
23+
version: "4.4.0+69",
2324
}

packages/apl-buildlist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
packageID: [
33
"aplteam-IniFiles-6.1.0",
4-
"aplteam-CommTools-2.0.1",
4+
"aplteam-CommTools-2.0.2",
55
"aplteam-APLTreeUtils2-1.4.1",
66
],
77
principal: [

packages/apl-dependencies.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
aplteam-APLTreeUtils2-1.4.1
22
aplteam-IniFiles-6.1.0
3-
aplteam-CommTools-2.0.1
3+
aplteam-CommTools-2.0.2

packages_dev/apl-buildlist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
packageID: [
33
"aplteam-FilesAndDirs-7.1.1",
4-
"aplteam-CommTools-2.0.1",
4+
"aplteam-CommTools-2.0.2",
55
"aplteam-CodeCoverage-0.12.0",
66
"aplteam-APLTreeUtils2-1.4.1",
77
"aplteam-OS-4.0.0",

packages_dev/apl-dependencies.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
aplteam-APLTreeUtils2-1.4.1
22
aplteam-FilesAndDirs-7.1.1
33
aplteam-CodeCoverage-0.12.0
4-
aplteam-CommTools-2.0.1
4+
aplteam-CommTools-2.0.2

0 commit comments

Comments
 (0)