Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Modern_Dev_MA
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
Muhamed Alici
Modern_Dev_MA
Commits
3046d4a0
Commit
3046d4a0
authored
3 weeks ago
by
Muhamed
Browse files
Options
Downloads
Patches
Plain Diff
my conn vs test
parent
e5c6844a
Loading
Loading
No related merge requests found
Pipeline
#20161
failed
3 weeks ago
Stage: build
Stage: test
Stage: dast
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Test_Converter_Römische_Zahlen.py
+20
-3
20 additions, 3 deletions
Test_Converter_Römische_Zahlen.py
report.md
+4
-3
4 additions, 3 deletions
report.md
with
24 additions
and
6 deletions
Test_Converter_Römische_Zahlen.py
+
20
−
3
View file @
3046d4a0
...
...
@@ -2,7 +2,7 @@
import
unittest
from
abc
import
ABC
,
abstractmethod
from
muhamed_directory.other.alma.test2converter
import
RomanNumber
as
Alma
#
from muhamed_directory.other.alma.test2converter import RomanNumber as Alma
class
IStringCalculator
(
ABC
):
@abstractmethod
...
...
@@ -25,7 +25,7 @@ class Converter(IStringCalculator):
return
result
class
TestRomanConverter
(
unittest
.
TestCase
):
'''
class TestRomanConverter(unittest.TestCase):
def setUp(self):
self.calculator = Alma
...
...
@@ -49,7 +49,24 @@ class TestRomanConverter(unittest.TestCase):
self.assertEqual(self.calculator.convert(1000),
"
M
"
)
def test_1999(self):
self
.
assertEqual
(
self
.
calculator
.
convert
(
1999
),
"
MCMXCIX
"
)
self.assertEqual(self.calculator.convert(1999),
"
MCMXCIX
"
)
'''
class
TestRomanConverter
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
converter
=
Converter
def
test_single_value
(
self
):
self
.
assertEqual
(
self
.
converter
.
convert
(
3
),
"
III
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
6
),
"
VI
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
8
),
"
VIII
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
12
),
"
XII
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
17
),
"
XVII
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
29
),
"
XXIX
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
34
),
"
XXXIV
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
55
),
"
LV
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
101
),
"
CI
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
501
),
"
DI
"
)
self
.
assertEqual
(
self
.
converter
.
convert
(
1003
),
"
MIII
"
)
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
report.md
+
4
−
3
View file @
3046d4a0
| Name | Interface break | Failed Testcases | Begründung |
|------|-----------------|------------------|------------------------------------------------------------------------------------------------------|
| Alma | yes | all |
`TypeError`
: Methode
`convert()`
fehlt der erwartete Parameter
`n`
. Interface nicht eingehalten. |
\ No newline at end of file
| Name | Interface break | Failed Testcases | Begründung |
|-------------------|-----------------|------------------|------------------------------------------------------------------------------------------------------|
| Alma | yes | all |
`TypeError`
: Methode
`convert()`
fehlt der erwartete Parameter
`n`
. Interface nicht eingehalten. |
| ich vs Alma Tests | no | none | Einziger definierter Test in
`test2converter.py`
wurde bestanden. |
\ No newline at end of file
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