This repository contains homeworks 2-5 of group 28
python test_egfunctions.py
-----------------------------------
51 31.007751937984494
!!!!!! PASS test_num True
-----------------------------
[18, 38, 45, 62, 71, 103, 121, 152, 218, 281, 286, 312, 318, 404, 426, 485, 487, 546, 567, 575, 576, 651, 679, 697, 750, 785, 811, 835, 870, 912, 929, 935]
!!!!!! PASS test_bignum True
--------------
--------------
['Clndrs', 'Volume', 'Hp:', 'Lbs-', 'Acc+', 'Model', 'origin', 'Mpg+']
[8.0, 304.0, 193.0, 4732.0, 18.5, 70.0, 1.0, 10.0]
[8.0, 360.0, 215.0, 4615.0, 14.0, 70.0, 1.0, 10.0]
[8.0, 307.0, 200.0, 4376.0, 15.0, 70.0, 1.0, 10.0]
[8.0, 318.0, 210.0, 4382.0, 13.5, 70.0, 1.0, 10.0]
[8.0, 429.0, 208.0, 4633.0, 11.0, 72.0, 1.0, 10.0]
[8.0, 400.0, 150.0, 4997.0, 14.0, 73.0, 1.0, 10.0]
[8.0, 350.0, 180.0, 3664.0, 11.0, 73.0, 1.0, 10.0]
[8.0, 383.0, 180.0, 4955.0, 11.5, 71.0, 1.0, 10.0]
[8.0, 350.0, 160.0, 4456.0, 13.5, 72.0, 1.0, 10.0]
!!!!!! PASS test_csv True
----------------------------
:div 1.378 :mid a
!!!!!! PASS test_sym True
------------------------------------
xmid {'Clndrs': 4, 'Volume': 151, 'Model': 76, 'origin': 1.0}
xdiv {'Clndrs': 1.55, 'Volume': 100.775, 'Model': 3.876, 'origin': 1.327}
ymid {'Lbs-': 2807, 'Acc+': 15, 'Mpg+': 20}
ydiv {'Lbs-': 886.822, 'Acc+': 2.713, 'Mpg+': 7.752}
!!!!!! PASS test_stats True
--------------------------------------
{:at 3, :hi 5140.0, :isSorted False, :lo 1613.0, :n 398, :name Lbs-}
--------------------------------------
{:at 4, :hi 24.8, :isSorted False, :lo 8.0, :n 398, :name Acc+}
--------------------------------------
{:at 7, :hi 50.0, :isSorted False, :lo 10.0, :n 398, :name Mpg+}
!!!!!! PASS test_data True
--------------
--------------
['Clndrs', 'Volume', 'Hp:', 'Lbs-', 'Acc+', 'Model', 'origin', 'Mpg+']
[8.0, 304.0, 193.0, 4732.0, 18.5, 70.0, 1.0, 10.0]
[8.0, 360.0, 215.0, 4615.0, 14.0, 70.0, 1.0, 10.0]
[8.0, 307.0, 200.0, 4376.0, 15.0, 70.0, 1.0, 10.0]
[8.0, 318.0, 210.0, 4382.0, 13.5, 70.0, 1.0, 10.0]
[8.0, 429.0, 208.0, 4633.0, 11.0, 72.0, 1.0, 10.0]
[8.0, 400.0, 150.0, 4997.0, 14.0, 73.0, 1.0, 10.0]
[8.0, 350.0, 180.0, 3664.0, 11.0, 73.0, 1.0, 10.0]
[8.0, 383.0, 180.0, 4955.0, 11.5, 71.0, 1.0, 10.0]
[8.0, 350.0, 160.0, 4456.0, 13.5, 72.0, 1.0, 10.0]
!!!!!! PASS test_csv True
{'eg': 'nothing', 'dump': False, 'file': 'data.csv', 'help': False, 'nums': 512, 'seed': 10019, 'seperator': ','}
!!!!!! PASS test_the True
tests failed: 0
- Elizabeth Lin
- Neel Shah
- Sanay Shah
- Shivesh Jha
- Shaival Shah