nry_itm_byValGet_ndxL_chk_testSimple start time : 4Apr2024 12h50m46s +--+--------------+---------------------------------------------+------+ |OK|test# |dat0 |dat1 | +--+--------------+---------------------------------------------+------+ | l|080_str_chr |the bigg fat cow | | +--+--------------+---------------------------------------------+------+ | l|160_str_str |+---------+------+------------+ |around| | | ||what goes|around|comes around| | | | | |+---------+------+------------+ | | +--+--------------+---------------------------------------------+------+ | l|230_intL_intL |+-------------------+-------------------+---+| 4| | | ||0 1 2 3 4 5 6 7 8 9|0 1 2 3 4 5 6 7 8 9|4 5|| | | | |+-------------------+-------------------+---+| | +--+--------------+---------------------------------------------+------+ | l|240_intLA_int | 0 1 2 3 4 | 4| | | | 5 6 7 8 9 | | | | |10 11 12 13 14 | | | | |15 16 17 18 19 | | +--+--------------+---------------------------------------------+------+ | l|243_intLA_int | 0 1 2 3 4 | 99| | | | 5 6 7 8 9 | | | | |10 11 12 13 14 | | | | |15 16 17 18 19 | | +--+--------------+---------------------------------------------+------+ | l|245_intLA_intA|+-+-+-+-----+-+-+ | 2| | | ||0|1|2|1 2 3|4|5| | | | | || | | |6 7 8| | | | | | | |+-+-+-+-----+-+-+ | | +--+--------------+---------------------------------------------+------+ | l|260_intLA_intL| 0 1 2 3 4 |4 5 | | | | 5 6 7 8 9 | | | | |10 11 12 13 14 | | | | |15 16 17 18 19 | | +--+--------------+---------------------------------------------+------+ | l|270_intLA_intA|+-+-+-+-----+-+-+ |1 2 3 | | | ||0|1|2|1 2 3|4|5| |6 7 8 | | | || | | |6 7 8| | | | | | | |+-+-+-+-----+-+-+ | | +--+--------------+---------------------------------------------+------+ | l|290_intN_int |+-+-+-+-----------------+-+-+ |1 2 3 | | | ||0|1|2|+-+-+-----------+|4|5| |2 7 2 | | | || | | ||1|2|+-----+-+-+|| | | | | | | || | | || | || 1|2|3||| | | | | | | || | | || | |+-----+-+-+|| | | | | | | || | | || | ||1 2 3|7|2||| | | | | | | || | | || | ||2 7 2| | ||| | | | | | | || | | || | |+-----+-+-+|| | | | | | | || | | |+-+-+-----------+| | | | | | | || | | ||2|7| 2|| | | | | | | || | | |+-+-+-----------+| | | | | | | |+-+-+-+-----------------+-+-+ | | +--+--------------+---------------------------------------------+------+ +--+--------------+----------------------------------+----------------------------------+ |OK|test# |std |calc | +--+--------------+----------------------------------+----------------------------------+ | l|080_str_chr |+------+------+-------+ |+------+------+-------+ | | | ||@@[3 ]|@@[8 ]|@@[12 ]| ||@@[3 ]|@@[8 ]|@@[12 ]| | | | |+------+------+-------+ |+------+------+-------+ | +--+--------------+----------------------------------+----------------------------------+ | l|160_str_str |+------+ |+------+ | | | ||@@[1 ]| ||@@[1 ]| | | | |+------+ |+------+ | +--+--------------+----------------------------------+----------------------------------+ | l|230_intL_intL |+----------+----------+----------+|+----------+----------+----------+| | | ||@@[0 , 4 ]|@@[1 , 4 ]|@@[2 , 0 ]|||@@[0 , 4 ]|@@[1 , 4 ]|@@[2 , 0 ]|| | | |+----------+----------+----------+|+----------+----------+----------+| +--+--------------+----------------------------------+----------------------------------+ | l|240_intLA_int |+--------+ |+--------+ | | | ||@@[0 4 ]| ||@@[0 4 ]| | | | |+--------+ |+--------+ | +--+--------------+----------------------------------+----------------------------------+ | l|243_intLA_int |?aryItmByValGetNdxLNon |?aryItmByValGetNdxLNon | +--+--------------+----------------------------------+----------------------------------+ | l|245_intLA_intA|+------+------------+ |+------+------------+ | | | ||@@[2 ]|@@[3 , 0 1 ]| ||@@[2 ]|@@[3 , 0 1 ]| | | | |+------+------------+ |+------+------------+ | +--+--------------+----------------------------------+----------------------------------+ | l|260_intLA_intL|?aryItmByValGetNdxLNon |?aryItmByValGetNdxLNon | +--+--------------+----------------------------------+----------------------------------+ | l|270_intLA_intA|+------+ |+------+ | | | ||@@[3 ]| ||@@[3 ]| | | | |+------+ |+------+ | +--+--------------+----------------------------------+----------------------------------+ | l|290_intN_int |+------------------+ |+------------------+ | | | ||@@[3 , 0 2 , 1 0 ]| ||@@[3 , 0 2 , 1 0 ]| | | | |+------------------+ |+------------------+ | +--+--------------+----------------------------------+----------------------------------+ +--+--------------+-----------------------------------------------------+ |OK|test# |comments | +--+--------------+-----------------------------------------------------+ | l|080_str_chr |OK - should work | +--+--------------+-----------------------------------------------------+ | l|160_str_str |OK - should work | +--+--------------+-----------------------------------------------------+ | l|230_intL_intL |OK - should work, note that each return is an [indxL]| +--+--------------+-----------------------------------------------------+ | l|240_intLA_int |OK - should work | +--+--------------+-----------------------------------------------------+ | l|243_intLA_int |fault return - 99 not in nry | +--+--------------+-----------------------------------------------------+ | l|245_intLA_intA|fails? - should work | +--+--------------+-----------------------------------------------------+ | l|260_intLA_intL|OK should fail - 4 5 is a sub, not an itm | +--+--------------+-----------------------------------------------------+ | l|270_intLA_intA|OK - should work | +--+--------------+-----------------------------------------------------+ | l|290_intN_int |OK - should work | +--+--------------+-----------------------------------------------------+ 24************************24 nry_itm_byValGet_ndxL_testSpecial - additional tests too big to fit in small tables 4Apr2024 12h50m46s +---------+ |+-----+ | +---------+ |nryInn : | +---------+ +-------+-----------------------------------+----+-----+ |0 1 2 3|+----------------------+----+-----+|helo|0 1 2| |4 0 1 2||c l 2 hello ?test 6.54|helo|0 1 2|| |3 4 5| | || | |3 4 5|| | | | |+----------------------+----+-----+| | | +-------+-----------------------------------+----+-----+ resL := nry_itm_get_ndxL nryInn 2 : +------------+------------+--------------+----------------+------------+ |@@[0 , 0 2 ]|@@[0 , 1 3 ]|@@[1 , 0 , 2 ]|@@[1 , 2 , 0 2 ]|@@[3 , 0 2 ]| +------------+------------+--------------+----------------+------------+ >> OK works : = stdL resL +---------+ |+-----+ | +---------+ |nryInn : | +---------+ +-----+----------------------+-------+ |0 1 2|0 1 2 |+-+-+-+| |3 4 5|3 4 5 ||0|1|2|| |6 7 8|6 7 8 |+-+-+-+| | | ||3|4|5|| | | |+-+-+-+| | | ||6|7|8|| | | |+-+-+-+| +-----+----------------------+-------+ |0 1 2|+-----+-----+-----+ |012 | |3 4 5||0 1 2|0 1 2|0 1 2| |345 | |6 7 8||3 4 5|3 4 5|3 4 5| |678 | | ||6 7 8|6 7 8|6 7 8| | | | |+-----+-----+-----+ | | | ||0 1 2|0 1 2|0 1 2| | | | ||3 4 5|3 4 5|3 4 5| | | | ||6 7 8|6 7 8|6 7 8| | | | |+-----+-----+-----+ | | | ||0 1 2|0 1 2|0 1 2| | | | ||3 4 5|3 4 5|3 4 5| | | | ||6 7 8|6 7 8|6 7 8| | | | |+-----+-----+-----+ | | +-----+----------------------+-------+ |0 1 2|c l 2 hello ?test 6.54|0 1 2 | |3 4 5| |3 4 5 | |6 7 8| |6 7 8 | +-----+----------------------+-------+ resL := nry_itm_get_ndxL nryInn 2 : +--------------+--------------+--------------+--------------------+--------------------+--------------------+- |@@[0 0 , 0 2 ]|@@[0 1 , 0 2 ]|@@[1 0 , 0 2 ]|@@[1 1 , 0 0 , 0 2 ]|@@[1 1 , 0 1 , 0 2 ]|@@[1 1 , 0 2 , 0 2 ]|@ +--------------+--------------+--------------+--------------------+--------------------+--------------------+- ~~...~~ -------------------+--------------------+--------------------+--------------------+--------------------+------ @[1 1 , 1 0 , 0 2 ]|@@[1 1 , 1 1 , 0 2 ]|@@[1 1 , 1 2 , 0 2 ]|@@[1 1 , 2 0 , 0 2 ]|@@[1 1 , 2 1 , 0 2 ]|@@[1 1 -------------------+--------------------+--------------------+--------------------+--------------------+------ ~~...~~ --------------+--------------+------------+--------------+ , 2 2 , 0 2 ]|@@[2 0 , 0 2 ]|@@[2 1 , 2 ]|@@[2 2 , 0 2 ]| --------------+--------------+------------+--------------+ ~~...~~ >> OK works : = stdL resL +---------+ |+-----+ | +---------+ |nryInn : | +---------+ +-+-+-+-----------------+-+-+ |0|1|2|+-+-+-----------+|4|5| | | | ||1|2|+-----+-+-+|| | | | | | || | || 1|2|3||| | | | | | || | |+-----+-+-+|| | | | | | || | ||1 2 3|7|2||| | | | | | || | ||2 7 2| | ||| | | | | | || | |+-----+-+-+|| | | | | | |+-+-+-----------+| | | | | | ||2|7| 2|| | | | | | |+-+-+-----------+| | | +-+-+-+-----------------+-+-+ resL := nry_itm_get_ndxL nryInn 2 : +------+------------+------------+------------+------------------+------------------+------------------------+ |@@[2 ]|@@[3 , 0 1 ]|@@[3 , 1 0 ]|@@[3 , 1 2 ]|@@[3 , 0 2 , 0 1 ]|@@[3 , 0 2 , 1 2 ]|@@[3 , 0 2 , 1 0 , 0 1 ]| +------+------------+------------+------------+------------------+------------------+------------------------+ ~~...~~ ------------------------+------------------------+ @@[3 , 0 2 , 1 0 , 1 0 ]|@@[3 , 0 2 , 1 0 , 1 2 ]| ------------------------+------------------------+ ~~...~~ >> OK works : = stdL resL