Skip to content
Snippets Groups Projects
Commit dbac6949 authored by David Hrbáč's avatar David Hrbáč
Browse files

Unmanaged repo

parent df7c750c
No related branches found
No related tags found
No related merge requests found
A =6
B= 3
ADD = $(( A + B))
DIVIDE = $($A / $B)
echo "Addind $B to $A is " $ADD
echo "$A divided by $A is "$DIVIDE
File moved
from scsmath import *
from pymath import *
import nose
def test_add_integers():
assert add(5, 3) == 8
def test_add_integers_zero():
assert add(3, 0) == 3
def test_add_floats():
assert add(1.5, 2.5) == 4
def test_add_strings():
nose.tools.assert_raises(AssertionError, add, 'paul', 'carol')
def test_divide_integers_even():
def test_divide_integers():
assert divide(2, 10) == 0.2
def test_divide_integers_repetant():
nose.tools.assert_almost_equal(divide(1, 3), 0.33333333, 7)
if __name__ == '__main__':
nose.run()
A = 5
B= 6
C = $A + $B
echo $C
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment