nry_itm_get_ndx1stL_chk_testSimple start time : 20Apr2024 18h57m29s +--+---------------+---------------------------------------------+-----------------------------+ |OK|test# |dat0 |dat1 | +--+---------------+---------------------------------------------+-----------------------------+ | l|010_null_null | | | +--+---------------+---------------------------------------------+-----------------------------+ | l|020_null_int | | 4| +--+---------------+---------------------------------------------+-----------------------------+ | l|050_chr_chr |g |g | +--+---------------+---------------------------------------------+-----------------------------+ | l|051_chrL_chrL |g |g | +--+---------------+---------------------------------------------+-----------------------------+ | l|080_str_chrL |the bigg fat cow | | +--+---------------+---------------------------------------------+-----------------------------+ | l|100_str_chr |the bigg fat cow |g | +--+---------------+---------------------------------------------+-----------------------------+ | l|160_strL_str |+---------+------+------------+ |around | | | ||what goes|around|comes around| | | | | |+---------+------+------------+ | | +--+---------------+---------------------------------------------+-----------------------------+ | l|230_intLL_intL |+-------------------+-------------------+---+|4 5 | | | ||0 1 2 3 4 5 6 7 8 9|0 1 2 3 4 5 6 7 8 9|4 5|| | | | |+-------------------+-------------------+---+| | +--+---------------+---------------------------------------------+-----------------------------+ | l|240_intA_int | 0 1 2 3 4 | 4| | | | 5 6 7 8 9 | | | | |10 11 12 13 14 | | | | |15 16 17 18 19 | | +--+---------------+---------------------------------------------+-----------------------------+ | l|250_intA_intL | 0 1 2 3 4 |5 6 7 8 | | | | 5 6 7 8 9 | | | | |10 11 12 13 14 | | | | |15 16 17 18 19 | | +--+---------------+---------------------------------------------+-----------------------------+ | l|260_intA_intL |+---+--+--+--+---+ |4 5 | | | || 0| 1| 2| 3|4 5| | | | | |+---+--+--+--+---+ | | | | || 5| 6| 7| 8| 9| | | | | |+---+--+--+--+---+ | | | | ||4 5|11|12|13| 14| | | | | |+---+--+--+--+---+ | | | | || 15|16|17|18| 19| | | | | |+---+--+--+--+---+ | | +--+---------------+---------------------------------------------+-----------------------------+ | l|270_intAL_intA |+-+-+-+-----+-+-+ |1 2 3 | | | ||0|1|2|1 2 3|4|5| |6 7 8 | | | || | | |6 7 8| | | | | | | |+-+-+-+-----+-+-+ | | +--+---------------+---------------------------------------------+-----------------------------+ | l|305_intAL_intA |+-+-+-+-----------------+-+-+ |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|| | | | | | | || | | |+-+-+-----------+| | | | | | | |+-+-+-+-----------------+-+-+ | | +--+---------------+---------------------------------------------+-----------------------------+ | l|310_intAL_intAL|+-+-+-+-----------------+-+-+ |+-----+-+-+ | | | ||0|1|2|+-+-+-----------+|4|5| || 1|2|3| | | | || | | ||1|2|+-----+-+-+|| | | |+-----+-+-+ | | | || | | || | || 1|2|3||| | | ||1 2 3|7|2| | | | || | | || | |+-----+-+-+|| | | ||2 7 2| | | | | | || | | || | ||1 2 3|7|2||| | | |+-----+-+-+ | | | || | | || | ||2 7 2| | ||| | | | | | | || | | || | |+-----+-+-+|| | | | | | | || | | |+-+-+-----------+| | | | | | | || | | ||2|7| 2|| | | | | | | || | | |+-+-+-----------+| | | | | | | |+-+-+-+-----------------+-+-+ | | +--+---------------+---------------------------------------------+-----------------------------+ | l|320_intAL_intAL|+-+-+-+-----------------+-+-+ |+-+-+-----------+ | | | ||0|1|2|+-+-+-----------+|4|5| ||1|2|+-----+-+-+| | | | || | | ||1|2|+-----+-+-+|| | | || | || 1|2|3|| | | | || | | || | || 1|2|3||| | | || | |+-----+-+-+| | | | || | | || | |+-----+-+-+|| | | || | ||1 2 3|7|2|| | | | || | | || | ||1 2 3|7|2||| | | || | ||2 7 2| | || | | | || | | || | ||2 7 2| | ||| | | || | |+-----+-+-+| | | | || | | || | |+-----+-+-+|| | | |+-+-+-----------+ | | | || | | |+-+-+-----------+| | | ||2|7| 2| | | | || | | ||2|7| 2|| | | |+-+-+-----------+ | | | || | | |+-+-+-----------+| | | | | | | |+-+-+-+-----------------+-+-+ | | +--+---------------+---------------------------------------------+-----------------------------+ | l|325_intAL_intAL|+-+-+-+-----------------+-+-+ |+-+-+-+-----------------+-+-+| | | ||0|1|2|+-+-+-----------+|4|5| ||0|1|2|+-+-+-----------+|4|5|| | | || | | ||1|2|+-----+-+-+|| | | || | | ||1|2|+-----+-+-+|| | || | | || | | || | || 1|2|3||| | | || | | || | || 1|2|3||| | || | | || | | || | |+-----+-+-+|| | | || | | || | |+-----+-+-+|| | || | | || | | || | ||1 2 3|7|2||| | | || | | || | ||1 2 3|7|2||| | || | | || | | || | ||2 7 2| | ||| | | || | | || | ||2 7 2| | ||| | || | | || | | || | |+-----+-+-+|| | | || | | || | |+-----+-+-+|| | || | | || | | |+-+-+-----------+| | | || | | |+-+-+-----------+| | || | | || | | ||2|7| 2|| | | || | | ||2|7| 2|| | || | | || | | |+-+-+-----------+| | | || | | |+-+-+-----------+| | || | | |+-+-+-+-----------------+-+-+ |+-+-+-+-----------------+-+-+| +--+---------------+---------------------------------------------+-----------------------------+ | l|350_intAL_intLL|+-+-+-+-----------------+-+-+ |+-+ | | | ||0|1|2|+-+-+-----------+|4|5| ||7| | | | || | | ||1|2|+-----+-+-+|| | | |+-+ | | | || | | || | || 1|2|3||| | | | | | | || | | || | |+-----+-+-+|| | | | | | | || | | || | ||1 2 3|7|2||| | | | | | | || | | || | ||2 7 2| | ||| | | | | | | || | | || | |+-----+-+-+|| | | | | | | || | | |+-+-+-----------+| | | | | | | || | | ||2|7| 2|| | | | | | | || | | |+-+-+-----------+| | | | | | | |+-+-+-+-----------------+-+-+ | | +--+---------------+---------------------------------------------+-----------------------------+ +--+---------------+-----------------+-----------------+ |OK|test# |std |calc | +--+---------------+-----------------+-----------------+ | l|010_null_null |?isLayNryNul |?isLayNryNul | +--+---------------+-----------------+-----------------+ | l|020_null_int |?isLayNryNul |?isLayNryNul | +--+---------------+-----------------+-----------------+ | l|050_chr_chr |?isLayNryAtm |?isLayNryAtm | +--+---------------+-----------------+-----------------+ | l|051_chrL_chrL | | | +--+---------------+-----------------+-----------------+ | l|080_str_chrL |+---+---+----+ |+---+---+----+ | | | ||+-+|+-+|+--+| ||+-+|+-+|+--+| | | | |||3|||8|||12|| |||3|||8|||12|| | | | ||+-+|+-+|+--+| ||+-+|+-+|+--+| | | | |+---+---+----+ |+---+---+----+ | +--+---------------+-----------------+-----------------+ | l|100_str_chr |+---+---+ |+---+---+ | | | ||+-+|+-+| ||+-+|+-+| | | | |||6|||7|| |||6|||7|| | | | ||+-+|+-+| ||+-+|+-+| | | | |+---+---+ |+---+---+ | +--+---------------+-----------------+-----------------+ | l|160_strL_str |+---+ |+---+ | | | ||+-+| ||+-+| | | | |||1|| |||1|| | | | ||+-+| ||+-+| | | | |+---+ |+---+ | +--+---------------+-----------------+-----------------+ | l|230_intLL_intL |+---+ |+---+ | | | ||+-+| ||+-+| | | | |||2|| |||2|| | | | ||+-+| ||+-+| | | | |+---+ |+---+ | +--+---------------+-----------------+-----------------+ | l|240_intA_int |+-----+ |+-----+ | | | ||+---+| ||+---+| | | | |||0 4|| |||0 4|| | | | ||+---+| ||+---+| | | | |+-----+ |+-----+ | +--+---------------+-----------------+-----------------+ | l|250_intA_intL |?aryItmGetNdxLNon|?aryItmGetNdxLNon| +--+---------------+-----------------+-----------------+ | l|260_intA_intL |+-----+-----+ |+-----+-----+ | | | ||+---+|+---+| ||+---+|+---+| | | | |||0 4|||2 0|| |||0 4|||2 0|| | | | ||+---+|+---+| ||+---+|+---+| | | | |+-----+-----+ |+-----+-----+ | +--+---------------+-----------------+-----------------+ | l|270_intAL_intA |+---+ |+---+ | | | ||+-+| ||+-+| | | | |||3|| |||3|| | | | ||+-+| ||+-+| | | | |+---+ |+---+ | +--+---------------+-----------------+-----------------+ | l|305_intAL_intA |+-----------+ |+-----------+ | | | ||+-+---+---+| ||+-+---+---+| | | | |||3|0 2|1 0|| |||3|0 2|1 0|| | | | ||+-+---+---+| ||+-+---+---+| | | | |+-----------+ |+-----------+ | +--+---------------+-----------------+-----------------+ | l|310_intAL_intAL|+-------+ |+-------+ | | | ||+-+---+| ||+-+---+| | | | |||3|0 2|| |||3|0 2|| | | | ||+-+---+| ||+-+---+| | | | |+-------+ |+-------+ | +--+---------------+-----------------+-----------------+ | l|320_intAL_intAL|+---+ |+---+ | | | ||+-+| ||+-+| | | | |||3|| |||3|| | | | ||+-+| ||+-+| | | | |+---+ |+---+ | +--+---------------+-----------------+-----------------+ | l|325_intAL_intAL| | | +--+---------------+-----------------+-----------------+ | l|350_intAL_intLL|?aryItmGetNdxLNon|?aryItmGetNdxLNon| +--+---------------+-----------------+-----------------+ +--+---------------+----------------------------------------------------+ |OK|test# |comments | +--+---------------+----------------------------------------------------+ | l|010_null_null |should fail, null -> no addr | +--+---------------+----------------------------------------------------+ | l|020_null_int |should fail, null -> no addr | +--+---------------+----------------------------------------------------+ | l|050_chr_chr |should fail, isNryLay atm -> no addr | +--+---------------+----------------------------------------------------+ | l|051_chrL_chrL |should be OK (= null) | +--+---------------+----------------------------------------------------+ | l|080_str_chrL |OK - should work, each is solitary | +--+---------------+----------------------------------------------------+ | l|100_str_chr |should be OK | +--+---------------+----------------------------------------------------+ | l|160_strL_str |OK - should work, atomic itm returns DOUBLE solitary| +--+---------------+----------------------------------------------------+ | l|230_intLL_intL |should be OK | +--+---------------+----------------------------------------------------+ | l|240_intA_int |should be OK | +--+---------------+----------------------------------------------------+ | l|250_intA_intL |should fail - not an itm, its a sub | +--+---------------+----------------------------------------------------+ | l|260_intA_intL |should be OK | +--+---------------+----------------------------------------------------+ | l|270_intAL_intA |OK - should work | +--+---------------+----------------------------------------------------+ | l|305_intAL_intA |should be OK | +--+---------------+----------------------------------------------------+ | l|310_intAL_intAL|should be OK | +--+---------------+----------------------------------------------------+ | l|320_intAL_intAL|should be OK | +--+---------------+----------------------------------------------------+ | l|325_intAL_intAL|should be OK (= null) | +--+---------------+----------------------------------------------------+ | l|350_intAL_intLL|OK - should fault | +--+---------------+----------------------------------------------------+ 24************************24 nry_itm_get_ndx1stL_chk_testSpecial - additional tests too big to fit in small tables 20Apr2024 18h57m29s +----------------+ |+-----+ | +----------------+ |400_intAL_intLLL| +----------------+ |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 should be OK, depth-row-col order +----------------+ |+-----+ | +----------------+ |402_intAL_intLLL| +----------------+ |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 : +-------+-----------+---------------+ |+-+---+|+-+---+---+|+-+---+---+---+| ||3|1 1|||3|0 2|1 1|||3|0 2|1 0|1 1|| |+-+---+|+-+---+---+|+-+---+---+---+| +-------+-----------+---------------+ >> OK works : = stdL resL should be OK, depth-row-col order +----------------+ |+-----+ | +----------------+ |404_intAL_intLLL| +----------------+ |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 should be OK, was hard not to make mistakes with stdL, depth-row-col order +----------------+ |+-----+ | +----------------+ |406_intAL_intLLL| +----------------+ |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 should be OK, looked same in geany find, solitary needed stdL, depth-row-col order +----------------+ |+-----+ | +----------------+ |408_intAL_intLLL| +----------------+ |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 should be OK, looked almost same in geany find, solitary needed stdL, depth-row-col order