''' Purpose: provide testers for test 2 ''' def test_cro() : from kuv import cro x1 = [ 3, 1, 4, 1, 5, 9 ] y1 = [ 2, 7, 1, 8, 2, 8 ] x2 = [ 1, 2, 3, 4 ] y2 = [ 5, 6, 7, 8 ] x3 = [ 3, 5, 7, 9, 11 ] y3 = [ 2, 4, 6, 8, 10 ] r1 = cro( x1, y1 ) print( "kuv.cro(", x1, ",", y1, "):", r1 ) r2 = cro( x2, y2 ) print( "kuv.cro(", x2, ",", y2, "):", r2 ) r3 = cro( x3, y3 ) print( "kuv.cro(", x3, ",", y3, "):", r3 ) def test_ser() : from fi import ser ns = [ 0, 1, 25, 75 ] for n in ns : r = ser( n ) print( "fi.ser(", n, "):", r ) def test_ind() : from khony import ind x1, y1 = "aunt", "tia" x2, y2 = 314, 272 x3, y3 = 0.0, 0.0 r1 = ind( x1, y1 ) print( "khony.ind(", x1, ",", y1, "):", r1 ) r2 = ind( x2, y2 ) print( "khony.ind(", x2, ",", y2, "):", r2 ) r3 = ind( x3, y3 ) print( "khony.ind(", x3, ",", y3, "):", r3 ) def test_don() : from mina import don w1, h1 = 4.5, 1.5 w2, h2 = 4, 2 r1 = don( w1, h1 ) print( "mina.don(", w1, ",", h1, "):", r1 ) r2 = don( w2, h2 ) print( "mina.don(", w2, ",", h2, "):", r2 ) def test_med() : from amake import med v1, w1, x1, y1, z1 = 17, 87, 21, 46, 84, v2, w2, x2, y2, z2 = 40, 90, 12, 24, 95, v3, w3, x3, y3, z3 = 30, 34, 14, 65, 49, r1 = med( v1, w1, x1, y1, z1 ) print( "amake.med(", v1, w1, x1, y1, z1, "):", r1 ) r2 = med( v2, w2, x2, y2, z2 ) print( "amake.med(", v2, w2, x2, y2, z2, "):", r2 ) r3 = med( v3, w3, x3, y3, z3 ) print( "amake.med(", v3, w3, x3, y3, z3, "):", r3 ) def test_dec() : from mich import dec d1 = { "a": "x", "b": "y", "c": "z" } d2 = { "o" : "u", "p": "s", "s": "n", "u": "t" } d3 = { "a": "a", "c" : "p", "h" : "e", "o": "c", "s": "e" } s1 = "a b c" s2 = "soup" s3 = "&#chaos[]" r1 = dec( d1, s1 ) print( "mich.dec( d1", ",", s1, "):", r1 ) r2 = dec( d2, s2 ) print( "mich.dec( d2", ",", s2, "):", r2 ) r3 = dec( d3, s3 ) print( "mich.dec( d3", ",", s3, "):", r3 ) def test_pro() : from iau import pro d1 = [ [5], [2, 3], [2, 2, 1] ] d2 = [ [5], [9, 2, 6, 8], [9, 5, 4, 9, 1] ] d3 = [ [7, 5, 4], [3, 4, 1, 9, 6, 1], [3, 3], [5], [5, 8] ] r1 = pro( d1 ) print( "iau.pro( d1 ):", r1 ) r2 = pro( d2 ) print( "iau.pro( d2 ):", r2 ) r3 = pro( d3 ) print( "iau.pro( d3 ):", r3 )