Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
firanka
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
firanka
Commits
9592721a
Commit
9592721a
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
ok
parent
24652e9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
firanka/series/range.py
+0
-1
0 additions, 1 deletion
firanka/series/range.py
tests/test_series/test_range.py
+2
-3
2 additions, 3 deletions
tests/test_series/test_range.py
with
2 additions
and
4 deletions
firanka/series/range.py
+
0
−
1
View file @
9592721a
...
@@ -3,7 +3,6 @@ from __future__ import print_function, absolute_import, division
...
@@ -3,7 +3,6 @@ from __future__ import print_function, absolute_import, division
import
six
import
six
import
logging
import
logging
import
re
import
re
from
satella.coding
import
for_argument
import
functools
import
functools
import
math
import
math
...
...
This diff is collapsed.
Click to expand it.
tests/test_series/test_range.py
+
2
−
3
View file @
9592721a
...
@@ -2,16 +2,15 @@
...
@@ -2,16 +2,15 @@
from
__future__
import
print_function
,
absolute_import
,
division
from
__future__
import
print_function
,
absolute_import
,
division
import
six
import
six
import
unittest
import
unittest
from
firanka.series.range
import
Range
from
firanka.series
import
Range
class
TestRange
(
unittest
.
TestCase
):
class
TestRange
(
unittest
.
TestCase
):
def
test_intersection
(
self
):
def
test_intersection
(
self
):
self
.
assertFalse
(
Range
(
-
10
,
-
1
,
True
,
True
).
intersection
(
'
<2;3>
'
))
self
.
assertFalse
(
Range
(
-
10
,
-
1
,
True
,
True
).
intersection
(
'
<2;3>
'
))
self
.
assertFalse
(
Range
(
-
10
,
-
1
,
True
,
False
).
intersection
(
'
(-1;3>
'
))
self
.
assertFalse
(
Range
(
-
10
,
-
1
,
True
,
False
).
intersection
(
'
(-1;3>
'
))
self
.
assertFalse
(
Range
(
'
<-10;-1)
'
).
intersection
(
'
<-1;1>
'
))
self
.
assertFalse
(
Range
(
'
<-10;-1)
'
).
intersection
(
'
<-1;1>
'
))
def
test_str
(
self
):
def
test_str
(
self
):
self
.
assertEqual
(
str
(
Range
(
-
1
,
1
,
True
,
True
)),
'
<-1;1>
'
)
self
.
assertEqual
(
str
(
Range
(
-
1
,
1
,
True
,
True
)),
'
<-1;1>
'
)
...
...
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