jackerma/CS112-Spring2012 — comment on commit a9da83459593cec6b0b6f4f426f0e6e53dae4630
File:  line 0
By jrabbit:

Part | Points
------------- | -------------
base | .5
*Total* | .5

Lots of errors and input requested (if you use it, comment it out for the next unittest based homework)

```
'tree' is not implemented
'normalize' is not implemented
----------------------------------------
test_greeter_basic (__main__.GreeterTest) ... ok
test_greeter_case (__main__.GreeterTest) ... ok
test_greeter_int (__main__.GreeterTest) ... ok
test_box (__main__.BoxTest) ... ok
test_box_error_too_small (__main__.BoxTest) ... FAIL
test_box_error_type (__main__.BoxTest) ... ERROR
test_distance (__main__.DistanceTest) ... 5.0
FAIL
test_point_in_box (__main__.PointInBoxTest) ... out of box

Point is in the box
out of box
out of box
out of box
FAIL
test_point_in_box_edges (__main__.PointInBoxTest) ...
Point is in the box
FAIL

======================================================================
ERROR: test_box_error_type (__main__.BoxTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "hw08.py", line 69, in test_box_error_type
self.assertOutput(box("", ""), self.error_msg)
File "/Users/jacklaxson/Projects/homework-cs112/jackerma/hw08/basic_funcs.py", line 40, in box
elif int(w)!=w or int(h)!=h:
ValueError: invalid literal for int() with base 10: ''

======================================================================
FAIL: test_box_error_too_small (__main__.BoxTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "hw08.py", line 64, in test_box_error_too_small
self.assertOutput(box(0,0), self.error_msg)
File "hw08.py", line 31, in assertOutput
self.fail(msg)
AssertionError:
Expected:
Error: Invalid Dimensions
Actual:
Error: Invalid Dimensions 1

======================================================================
FAIL: test_distance (__main__.DistanceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "hw08.py", line 118, in test_distance
self.assertEquals(distance((0,0), (4,3)), 5)
AssertionError: None != 5

======================================================================
FAIL: test_point_in_box (__main__.PointInBoxTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "hw08.py", line 145, in test_point_in_box
self.assertTrue(point_in_box((15,15), box))
AssertionError: None is not true

======================================================================
FAIL: test_point_in_box_edges (__main__.PointInBoxTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "hw08.py", line 153, in test_point_in_box_edges
self.assertTrue(point_in_box((10,10),box))
AssertionError: None is not true

----------------------------------------------------------------------
Ran 9 tests in 0.002s

```