Skip to content
Snippets Groups Projects
Commit 18cca09d authored by Owen Huyn's avatar Owen Huyn
Browse files

Added changes to tutorial 5.

parent 475a2ece
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
PY = python
PYFLAGS =
DOC = doxygen
DOCFLAGS =
DOCCONFIG = pointdoc
SRC = CircleADT.py
SRC2 = Statistics.py
TEST1 = test_circles.py
TEST2 = test_statistics.py
.PHONY: all prog doc clean
prog:
$(PY) $(PYFLAGS) $(SRC)
$(PY) $(PYFLAGS) $(SRC2)
$(PY) $(PYFLAGS) $(TEST1)
$(PY) $(PYFLAGS) $(TEST2)
doc:
$(DOC) $(DOCFLAGS) $(DOCCONFIG)
cd latex && $(MAKE)
all: prog doc
clean:
rm -rf html
rm -rf latex
......@@ -10,10 +10,10 @@ class CirclesTests(unittest.TestCase):
self.circle = None
def test_xcoord_are_equal(self):
self.assertTrue(circle.xcoord() == 1)
self.assertTrue(self.circle.xcoord() == 1)
def test_xcoord_are_not_equal(self):
self.assertFalse(circle.xcoord() != 1)
self.assertFalse(self.circle.xcoord() != 1)
if __name__ == '__main__':
unittest.main()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment