Skip to content

Commit 1109398

Browse files
committed
Merge branch 'master' of jsoftware.com:jsource
2 parents 490dbba + b1872ac commit 1109398

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

script/testga.ijs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ os=: (('Linux';'Darwin') i. <UNAME) pick ;:'linux darwin win'
66
testres=: 'test',os,'.txt'
77

88
0!:0 <testpath,'tsu.ijs'
9-
echo 'cpu ',(9!:56'cpu'),' cores ',":9!:56'cores'
109
GITHUBCI=: 1 NB. testing on github
1110
ECHOFILENAME=: 1 NB. echo file name
1211

@@ -31,4 +30,4 @@ if. (os -: 'win') *. 1 e. 'avx/' E. 9!:14'' do.
3130
end.
3231
)
3332

34-
exit ''
33+
exit *@#RES

script/testga.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# current macOS github builder only supports avx
88
# cpu is Xeon E5-1650 v2 (from 2013)
99

10+
set -e
11+
1012
if [ $1 == "linux" ]; then
1113
ext="so"
1214
elif [ "$1" == "darwin" ]; then

test/g3x12.ijs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ x=. I. 26 > n=. ((97+i.26){a.) i. t=. ,y
2121
(ToLower -: 0&(3!:12)) 0.5 + i. 3 4
2222
(ToLower -: 0&(3!:12)) 1j1 + i. 3 4
2323
(ToLower -: 0&(3!:12)) x: i. 3 4
24+
(ToLower -: 0&(3!:12)) 1r2 3r4
2425
(ToLower -: 0&(3!:12)) <a.
2526
(ToLower -: 0&(3!:12)) <123 456$a.
2627
(ToLower -: 0&(3!:12)) 3 4$<a.
@@ -38,17 +39,21 @@ x=. I. 26 > n=. ((97+i.26){a.) i. t=. ,y
3839
(ToUpper -: 1&(3!:12)) 0.5 + i. 3 4
3940
(ToUpper -: 1&(3!:12)) 1j1 + i. 3 4
4041
(ToUpper -: 1&(3!:12)) x: i. 3 4
42+
(ToUpper -: 1&(3!:12)) 1r2 3r4
4143
(ToUpper -: 1&(3!:12)) <a.
4244
(ToUpper -: 1&(3!:12)) <123 456$a.
4345
(ToUpper -: 1&(3!:12)) 3 4$<a.
4446
(ToUpper -: 1&(3!:12)) 3 4$<123 456$a.
4547
(ToUpper -: 1&(3!:12))&> 3 4$<a.
4648
(ToUpper -: 1&(3!:12))&> 3 4$<123 456$a.
4749

50+
(] -: 0&(3!:12)) $. i. 3 4
51+
(] -: 1&(3!:12)) $. i. 3 4
52+
'nonce error' -: ToLower etx $. i. 3 4
53+
'nonce error' -: ToUpper etx $. i. 3 4
54+
4855
'domain error' -: _1&(3!:12) etx ''
4956
'domain error' -: 2&(3!:12) etx ''
50-
'nonce error' -: 0&(3!:12) etx $. i. 3 4
51-
'nonce error' -: 1&(3!:12) etx $. i. 3 4
5257

5358
4!:55 ;:'ToLower ToUpper'
5459

test/tsu.ijs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,4 +426,4 @@ see: tsu_notes, tsu_usage, tsu_pacman, and tsu_jd
426426
)
427427

428428
echo 9!:14''
429-
429+
echo 'cpu ',(9!:56'cpu'),' cores ',":9!:56'cores'

0 commit comments

Comments
 (0)