This project aims to learn about docstrings to create and implement tests in Python.
- Python Scripts are written with Python 3.4.3
- C files are compiled using
gcc 4.8.4 - Tested on Ubuntu 14.04 LTS
| Filename | Description |
|---|---|
0-add_integer.py |
Function that adds two integers (Doctest on tests/0-add_integer.txt) |
2-matrix_divided.py |
Function that divides all elemtns of a matrix (Doctest on tests/2-matrix_divided.txt) |
3-say_my_name.py |
Function that prints My name is <first name> <last name> (Doctest on tests/3-say_my_name.txt) |
4-print_square.py |
Function that prints a square with the character # (Doctest on tests/4-print_sqaure.txt) |
5-text_indentation.py |
Function that prints a text with 2 new lines after each of these ., ? and : (Doctest on tests/5-text_indentation.txt) |
tests/6-max_integer_test.py |
Unittests for the function def max_integer(list=[]) |
100-matrix_mul.py |
Function that multiplies 2 matrices (Doctest on tests/100-matrix_mul.txt) |
101-lazy_matrix_mul.py |
Function that multiplies 2 matrices by using the module NumPy (Doctest on tests/101-lazy_matrix_mul.txt) |
102-python.c |
Function that prints Python strings |