Adding unit test

This commit is contained in:
Olivier Keshavjee 2017-11-18 22:07:10 +01:00
parent e9be022430
commit 84466b90e3
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
"""Tests."""

View file

@ -0,0 +1,12 @@
#!/usr/bin/env python
# --!-- coding: utf8 --!--
"""Tests for outlineItem"""
def square(i):
return i*i
def test_square():
assert square(2) == 4
assert square(-2) == 4