jsoftware / j-playground

J playground
https://jsoftware.github.io/j-playground/bin/html2/
Other
10 stars 5 forks source link

g300 test failure - NaN or _ issue #37

Open joebo opened 2 years ago

joebo commented 2 years ago

Many cases in g300 pass, but this one doesn't. Any help is appreciated

Playground link

It may be related to #34 since that was in the section of booleans and this is failing on a similar looking line

....
   test =: +/ .* -: +/@(*"1 _)
   (3 15?@$0)       test ?15 7$100
0
   1:@:(dbr bind Debug)@:(9!:19)2^_44[(prolog [ echo^:ECHOFILENAME) './g300.ijs'
1
   NB. +/ .* ---------------------------------------------------------------

   NB. test failed on small ct
   ct   =: 9!:18''
   9!:19[2^_36

   test =: +/ .* -: +/@(*"1 _)

   f=: 4 : 0
 xx=: x ?@$ 2
 yy=: y ?@$ 2
 assert. xx test yy
 1
)

   (<'')    f&> '';17;13 17;1 2 3
1 1 1 1
   (<17)    f&> '';17;17 1;17 2 3
1 1 1 1
   (<17 3)  f&> '';3 17;3 11;3 1 1
1 1 1 1
   (<1 7 3) f&> '';3 17;3 11;3 1 1
1 1 1 1

   f=: 4 : 0
 xx=: (3,x) ?@$ 2
 yy=: (x,y) ?@$ 2
 assert. xx test yy
 1
)

   (255+i:5) f"0/ 15+i.20
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
   (510+i:5) f"0/ 15+i.20
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

   (3 15?@$2)       test ?15 7$2
1
   (3 15?@$2)       test ?15 2 7$100
1
   (3 15?@$2)       test ?15 7$1e9
1
   (3 15?@$2)       test o.?15 7 2$1100
1
   (3 15?@$2)       test r.?15 7 1 2$1100
1

   (3 15?@$100)     test ?15 2 3 1 $2
1
   (3 15?@$100)     test ?15 1 2 2$100
1
   (3 15?@$100)     test ?15 7$1e9
1
   (3 15?@$100)     test o.?15 7$1100
1
   (3 15?@$100)     test r.?15 7$1100
1

   (2 3 15?@$1e9)   test ?15 7$2
1
   (2 3 15?@$1e9)   test ?15 1 2 3$100
1
   (2 3 15?@$1e9)   test ?15 7$1e9
1
   (2 3 15?@$1e9)   test o.?15 2 3 1$1100
1
   (2 3 15?@$1e9)   test r.?15 7$1100
1

   (3 15?@$0)       test ?15 7$2
1
   (3 15?@$0)       test ?15 7$100
0
|assertion failure: RUN1
|[-50] //test/g300.ijs
joebo commented 2 years ago

this is getting farther now with the revert back to the original cip.c in 517e00a2f9c77a2cbe65bd89d624331fb90fe563

This is currently failing

   0 -: 0     +/ .* _
0
|assertion failure
|[-148] //test/g300.ijs