opPhr_ary_LEAFreplaceWith_aryStatic_testSimple start time : 20Apr2022 19h04m02s +--+-----------------------------+---------------------------------------------------------------+------------ |OK|test# |dat0 |dat1 +--+-----------------------------+---------------------------------------------------------------+------------ | o|t01 |aryInn_replaceWith_aryOut |z +--+-----------------------------+---------------------------------------------------------------+------------ | o|obvious |t02 |aryInn_repla +--+-----------------------------+---------------------------------------------------------------+------------ | o|lll |returns n_bytes reshape l, n_bytes = # of bytes for unicode chr|t03 +--+-----------------------------+---------------------------------------------------------------+------------ | o| l|lll |works with a +--+-----------------------------+---------------------------------------------------------------+------------ | o|+---+--+ | l|+---+--+ | || l|ll| | || l|ll| | |+---+--+ | |+---+--+ | ||lll| l| | ||lll| l| | |+---+--+ | |+---+--+ +--+-----------------------------+---------------------------------------------------------------+------------ | o|aryInn_replaceWith_aryOut |+---+-----+ | | | ||hot|cold | | | | |+---+-----+ | | | ||big|small| | | | |+---+-----+ | +--+-----------------------------+---------------------------------------------------------------+------------ | o|t06 |aryInn_replaceWith_aryOut |+-+-----+ | | | ||1|t | | | | |+-+-----+ | | | ||z|+---+| | | | || ||all|| | | | || |+---+| | | | |+-+-----+ +--+-----------------------------+---------------------------------------------------------------+------------ | o|works with nested [chr, str]s|t09 |aryInn_repla +--+-----------------------------+---------------------------------------------------------------+------------ | o|+---------+-------+ |confirmation - works with nested ary1 |t20 | ||lll |+--+--+| | | | || || l|ll|| | | | || |+--+--+| | | | || ||ll| l|| | | | || ||ll| || | | | || |+--+--+| | | | |+---------+-------+ | | | ||+-+-----+|lllll | | | | |||l| l|| | | | | ||+-+-----+| | | | | |||l|+---+|| | | | | ||| ||lll||| | | | | ||| |+---+|| | | | | ||+-+-----+| | | | | |+---------+-------+ | | +--+-----------------------------+---------------------------------------------------------------+------------ | o| : postWord |+------------+------------+------------+ |charrep ∫ | | || : postWord| : postWord| : postWord| | | | |+------------+------------+------------+ | +--+-----------------------------+---------------------------------------------------------------+------------ | o|+---+-----+ | soup |+----------- | ||hot|cold | | ||+------+--- | |+---+-----+ | |||h soup|o s | ||big|small| | ||+------+--- | |+---+-----+ | |+----------- | | | ||+------+--- | | | |||b soup|i s | | | ||+------+--- | | | |+----------- +--+-----------------------------+---------------------------------------------------------------+------------ | o|chrLL_anyIn_strL |szyu | sleep +--+-----------------------------+---------------------------------------------------------------+------------ | o|t39 |chrL_anyIn_str |szyu +--+-----------------------------+---------------------------------------------------------------+------------ ~~...~~ -------------------------------------------------------------------------------+ | -------------------------------------------------------------------------------+ | -------------------------------------------------------------------------------+ ceWith_aryOut | -------------------------------------------------------------------------------+ | -------------------------------------------------------------------------------+ tomL | -------------------------------------------------------------------------------+ | | | | | -------------------------------------------------------------------------------+ l| | | | | -------------------------------------------------------------------------------+ | | | | | | | -------------------------------------------------------------------------------+ ceWith_aryOut | -------------------------------------------------------------------------------+ | | | | | | | | | | | | | | | | -------------------------------------------------------------------------------+ = -30 -120 -85, answer is actually correct as far as I can see, but Im not sure| | | -------------------------------------------------------------------------------+ -----------+------------------------------------+ | ---+------+|+------+------+------+------+ | | oup|t soup|||c soup|o soup|l soup|d soup| | | ---+------+|+------+------+------+------+ | | -----------+------------------------------------+ | ---+------+|+------+------+------+------+------+| | oup|g soup|||s soup|m soup|a soup|l soup|l soup|| | ---+------+|+------+------+------+------+------+| | -----------+------------------------------------+ | -------------------------------------------------------------------------------+ | -------------------------------------------------------------------------------+ | -------------------------------------------------------------------------------+ ~~...~~ +--+-----------------------------+-----------------+ |OK|test# |calc | +--+-----------------------------+-----------------+ | o|t01 |?not an operation| +--+-----------------------------+-----------------+ | o|obvious |?not an operation| +--+-----------------------------+-----------------+ | o|lll |?not an operation| +--+-----------------------------+-----------------+ | o| l|?not an operation| +--+-----------------------------+-----------------+ | o|+---+--+ |?not an operation| | || l|ll| | | | |+---+--+ | | | ||lll| l| | | | |+---+--+ | | +--+-----------------------------+-----------------+ | o|aryInn_replaceWith_aryOut |?not an operation| +--+-----------------------------+-----------------+ | o|t06 |?not an operation| +--+-----------------------------+-----------------+ | o|works with nested [chr, str]s|?not an operation| +--+-----------------------------+-----------------+ | o|+---------+-------+ |?not an operation| | ||lll |+--+--+| | | | || || l|ll|| | | | || |+--+--+| | | | || ||ll| l|| | | | || ||ll| || | | | || |+--+--+| | | | |+---------+-------+ | | | ||+-+-----+|lllll | | | | |||l| l|| | | | | ||+-+-----+| | | | | |||l|+---+|| | | | | ||| ||lll||| | | | | ||| |+---+|| | | | | ||+-+-----+| | | | | |+---------+-------+ | | +--+-----------------------------+-----------------+ | o| : postWord |?not an operation| +--+-----------------------------+-----------------+ | o|+---+-----+ |?not an operation| | ||hot|cold | | | | |+---+-----+ | | | ||big|small| | | | |+---+-----+ | | +--+-----------------------------+-----------------+ | o|chrLL_anyIn_strL |?not an operation| +--+-----------------------------+-----------------+ | o|t39 |?not an operation| +--+-----------------------------+-----------------+ +--+-----------------------------+---------------------------------------------------------------------------- |OK|test# |comments +--+-----------------------------+---------------------------------------------------------------------------- | o|t01 | +--+-----------------------------+---------------------------------------------------------------------------- | o|obvious | +--+-----------------------------+---------------------------------------------------------------------------- | o|lll |1 t z +--+-----------------------------+---------------------------------------------------------------------------- | o| l|aryInn_replaceWith_aryOut +--+-----------------------------+---------------------------------------------------------------------------- | o|+---+--+ |t05 | || l|ll| | | |+---+--+ | | ||lll| l| | | |+---+--+ | +--+-----------------------------+---------------------------------------------------------------------------- | o|aryInn_replaceWith_aryOut |works with a simple (non-nested) ary of strs +--+-----------------------------+---------------------------------------------------------------------------- | o|t06 |+-+-----+ | | ||l| l| | | |+-+-----+ | | ||l|+---+| | | || ||lll|| | | || |+---+| | | |+-+-----+ +--+-----------------------------+---------------------------------------------------------------------------- | o|works with nested [chr, str]s| +--+-----------------------------+---------------------------------------------------------------------------- | o|+---------+-------+ | | ||lll |+--+--+| | | || || l|ll|| | | || |+--+--+| | | || ||ll| l|| | | || ||ll| || | | || |+--+--+| | | |+---------+-------+ | | ||+-+-----+|lllll | | | |||l| l|| | | | ||+-+-----+| | | | |||l|+---+|| | | | ||| ||lll||| | | | ||| |+---+|| | | | ||+-+-----+| | | | |+---------+-------+ | +--+-----------------------------+---------------------------------------------------------------------------- | o| : postWord |link +--+-----------------------------+---------------------------------------------------------------------------- | o|+---+-----+ |t30 | ||hot|cold | | | |+---+-----+ | | ||big|small| | | |+---+-----+ | +--+-----------------------------+---------------------------------------------------------------------------- | o|chrLL_anyIn_strL |confirms that chrLL_anyIn_strL gives proper response +--+-----------------------------+---------------------------------------------------------------------------- | o|t39 |?chrL_anyIn_str : NOT [chrL, str] inputs ?chrL_anyIn_str : NOT [chrL, str] i +--+-----------------------------+---------------------------------------------------------------------------- ~~...~~ ---------------------------------------------------------------------------------------+ | ---------------------------------------------------------------------------------------+ l| ---------------------------------------------------------------------------------------+ l| ---------------------------------------------------------------------------------------+ | ---------------------------------------------------------------------------------------+ | ---------------------------------------------------------------------------------------+ | | | | | ---------------------------------------------------------------------------------------+ | ---------------------------------------------------------------------------------------+ | | | | | | | ---------------------------------------------------------------------------------------+ l| ---------------------------------------------------------------------------------------+ | | | | | | | | | | | | | | | | ---------------------------------------------------------------------------------------+ | ---------------------------------------------------------------------------------------+ | | | | | ---------------------------------------------------------------------------------------+ | ---------------------------------------------------------------------------------------+ nputs ?chrL_anyIn_str : NOT [chrL, str] inputs ?chrL_anyIn_str : NOT [chrL, str] inputs| ---------------------------------------------------------------------------------------+ ~~...~~