Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marek Pecha
ci-test
Commits
dbac6949
Commit
dbac6949
authored
7 years ago
by
David Hrbáč
Browse files
Options
Downloads
Patches
Plain Diff
Unmanaged repo
parent
df7c750c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bashmath.sh
+10
-0
10 additions, 0 deletions
bashmath.sh
pymath.py
+0
-0
0 additions, 0 deletions
pymath.py
test.py
+2
-11
2 additions, 11 deletions
test.py
test.sh
+0
-7
0 additions, 7 deletions
test.sh
with
12 additions
and
18 deletions
bashmath.sh
0 → 100644
+
10
−
0
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
This diff is collapsed.
Click to expand it.
scs
math.py
→
py
math.py
+
0
−
0
View file @
dbac6949
File moved
This diff is collapsed.
Click to expand it.
test.py
+
2
−
11
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
()
This diff is collapsed.
Click to expand it.
test.sh
deleted
100644 → 0
+
0
−
7
View file @
df7c750c
A
=
5
B
=
6
C
=
$A
+
$B
echo
$C
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment