Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Praxisprojekt Technologiebasierte Innovationen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Daniel Rafeh
Praxisprojekt Technologiebasierte Innovationen
Commits
3c956530
Commit
3c956530
authored
2 weeks ago
by
Daniel Rafeh
Browse files
Options
Downloads
Patches
Plain Diff
New Tests in order to check if everything works out (Test 23/26 successful)
parent
c671356c
No related branches found
Branches containing commit
No related tags found
2 merge requests
!4
Main
,
!2
Main to develop
Pipeline
#19936
passed
2 weeks ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
converter.py
+10
-0
10 additions, 0 deletions
converter.py
with
10 additions
and
0 deletions
converter.py
+
10
−
0
View file @
3c956530
...
...
@@ -20,6 +20,10 @@
# Bei Eingabe der Zahl 2025 soll "MMXXV" ausgegeben werden
# Bei Eingabe von Zeichen wie ! soll "Bitte ganze Zahlen eingeben" ausgegeben werden
# Bei Eingabe mehrerer Zahlen wie 4, 3 soll "Bitte nur eine ganze Zahl eingeben" augegeben werden
# Bei Eingabe größerer Zahlen wie z.B. 4000 soll "MMMM" ausgegeben werden
# Bei Eingabe der Zahl 30 soll "XXX" ausgegeben werden
# Bei Eingabe der Zahl 90 soll "90" ausgegeben werden
# Bei Eingabe eines leeren Strings soll "Bitte ganze Zahlen eingeben" ausgegeben werden
import
unittest
from
abc
import
ABC
,
abstractmethod
...
...
@@ -155,6 +159,12 @@ class TestConverter(unittest.TestCase):
res
=
self
.
c
.
convert
(
'
4, 3
'
)
self
.
assertEqual
(
res
,
"
Bitte nur eine ganze Zahl eingeben
"
)
def
test_convertHighNum
(
self
):
res
=
self
.
c
.
convert
(
4000
)
self
.
assertEqual
(
res
,
"
MMMM
"
)
if
__name__
==
"
__main__
"
:
unittest
.
main
()
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