|
1 | 1 | ok←test_bugs(folder name);engine;foo;newbody;nr;opts;props;ref;root;search;server;src;src2;sub;todelete;unlikelyclass;unlikelyfile;unlikelyname;var;warn;z;f;b |
2 | 2 | ⍝ Github issues |
3 | 3 | name ⎕NS'' |
4 | | - QMKDIR Retry⊢folder ⍝ folder must be non-existent |
| 4 | + 3 ⎕NDELETE folder ⍝ folder must be non-existent |
| 5 | + QMKDIR Retry⊢folder |
5 | 6 |
|
6 | 7 | ⍝ link issue #335 |
7 | 8 | z←name'abc'⎕SE.Link.Fix,⊂'[1⋄2⋄3]' |
|
71 | 72 | z←LinkCreate'#.unlikelyname.sub'folder |
72 | 73 | assert'3=CountLinks' |
73 | 74 | props←'Namespace' '' 'Source' 'Files' |
74 | | - z←{(~⍵[;1]∊IGNORE_LINKS)⌿⍵}⎕SE.Link.Status '' |
| 75 | + z←{(~⍵[;1]∊IGNORE_LINKS)⌿⍵}⎕SE.Link.Status'' |
75 | 76 | 'link issue #142'assert'(props⍪ ''⎕SE.unlikelyname'' ''#.unlikelyname'' ''#.unlikelyname.sub'',3 3⍴''←→'' folder 1)≡z' |
76 | 77 | z←{(~⍵[;1]∊IGNORE_LINKS)⌿⍵}⎕SE.Link.Status ⎕SE |
77 | 78 | 'link issue #142'assert'(props,[.5] ''⎕SE.unlikelyname'' ''←→'' folder 1 )≡z' |
78 | 79 |
|
79 | 80 | {}'(all:1)'⎕SE.Link.Break ⍬ |
80 | 81 | 'link issue #284'assert'{6::1 ⋄ (⎕SE.Link.Links.ns~IGNORE_LINKS)≡,⊂''⎕SE.unlikelyname''}⍬' |
81 | 82 | :If ~TESTS_LINKED |
82 | | - {}'(all:''⎕SE'')'⎕SE.Link.Break ⍬ |
83 | | - 'link issue #284'assert'{6::1 ⋄ 0=CountLinks}⍬' |
| 83 | + {}'(all:''⎕SE'')'⎕SE.Link.Break ⍬ |
| 84 | + 'link issue #284'assert'{6::1 ⋄ 0=CountLinks}⍬' |
84 | 85 | :Else |
85 | | - Log 'Not testing "]link.break -all=⎕SE" because ',(⍕⎕THIS),' is linked' |
| 86 | + Log'Not testing "]link.break -all=⎕SE" because ',(⍕⎕THIS),' is linked' |
86 | 87 | :EndIf |
87 | 88 |
|
88 | 89 | ⎕EX'⎕SE.unlikelyname' '#.unlikelyname' |
|
212 | 213 | z←⎕SE.Link.GetItemName f←1 NTREE folder |
213 | 214 | 'link issue #128'assert'({⍵[⍋⍵]}z)≡({⍵[⍋⍵]} 1 NSTREE name)' |
214 | 215 | :If ⎕SE.Link.U.ISWIN |
215 | | - b←('/' ⎕R '\\')f ⍝ file names with backslashes |
216 | | - 'link issue #482' assert 'z≡⎕SE.Link.GetItemName b' |
| 216 | + b←('/'⎕R'\\')f ⍝ file names with backslashes |
| 217 | + 'link issue #482'assert'z≡⎕SE.Link.GetItemName b' |
217 | 218 | :EndIf |
218 | 219 | z←⎕SE.Link.GetFileName'⎕SE.nope' '⎕SE.nope.nope',name∘,¨'.nope' '.sub.nope' '.nope.nope' |
219 | 220 | z,←⎕SE.Link.GetItemName'/nope.aplf' '/nope/nope.aplf',folder∘,¨'/nope.nope' '/sub/nope.nope' '/nope/nope.nope' |
|
267 | 268 | (⍎name).{⎕THIS.jsondict←⎕SE.Dyalog.Array.Deserialise ⍵}'(var:42 ⋄ list:1 2 3)' ⍝ ⎕JSON'{"var":42,"list":[1,2,3]}' hits Mantis 18652 |
268 | 269 | ⍝'link issue #177'assertError'z←(⍎name).{⎕SE.UCMD''z←]Link.Add jsondict.list''}⍬'('Not a properly named namespace')0 ⍝ UCMD may trigger any error number |
269 | 270 | z←(⍎name).{⎕SE.UCMD']Link.Add jsondict.list'}⍬ |
270 | | - 'link issue #177'assert'∨/''⎕SE.Link.Add: Not a properly named namespace:''⍷z' ⍝ link issue #217 - UCMD must not error |
| 271 | + 'link issue #177'assert'∨/''properly named''⍷z' ⍝ link issue #217 - UCMD must not error |
271 | 272 |
|
272 | 273 | ⎕EX name,'.jsondict' |
273 | 274 | {}⎕SE.Link.Break name |
|
294 | 295 | #.jsondict←#.⎕JSON'{"var":42,"list":[1,2,3]}' |
295 | 296 | ⍝'link issue #177'assertError'#.{⎕SE.UCMD''z←]Link.Add jsondict.list''}⍬' 'Not a properly named namespace' 0 ⍝ UCMD may trigger any error number |
296 | 297 | z←#.{⎕SE.UCMD']Link.Add jsondict.list'}⍬ |
297 | | - 'link issue #177'assert'∨/''⎕SE.Link.Add: Not a properly named namespace:''⍷z' ⍝ link issue #217 - UCMD must not error |
| 298 | + 'link issue #177'assert'∨/''properly named''⍷z' ⍝ link issue #217 - UCMD must not error |
298 | 299 | ⎕EX'#.jsondict' ⋄ '#.jsondict'⎕NS'' ⋄ #.jsondict.(var list)←42(1 2 3) |
299 | 300 | z←#.{⎕SE.UCMD']Link.Add jsondict.list'}⍬ |
300 | 301 | 'link issue #177'assert'⎕NEXISTS ''',folder,'/jsondict-0/list-0.apla''' |
|
0 commit comments