Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lubomir Prda
ci-test
Commits
dbac6949
Commit
dbac6949
authored
Nov 27, 2017
by
David Hrbáč
Browse files
Unmanaged repo
parent
df7c750c
Changes
4
Hide whitespace changes
Inline
Side-by-side
bashmath.sh
0 → 100644
View file @
dbac6949
A
=
6
B
=
3
ADD
=
$((
A
+
B
))
DIVIDE
=
$(
$A
/
$B
)
echo
"Addind
$B
to
$A
is "
$ADD
echo
"
$A
divided by
$A
is "
$DIVIDE
scs
math.py
→
py
math.py
View file @
dbac6949
File moved
test.py
View file @
dbac6949
from
scs
math
import
*
from
py
math
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
()
test.sh
deleted
100644 → 0
View file @
df7c750c
A
=
5
B
=
6
C
=
$A
+
$B
echo
$C
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment