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
ift
NIFTy
Commits
55c0ffa4
Commit
55c0ffa4
authored
Jan 23, 2017
by
Jait Dixit
Browse files
Remove test_trivial.py
parent
1e0c56c4
Pipeline
#9570
passed with stage
in 29 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_trivial.py
deleted
100644 → 0
View file @
1e0c56c4
from
nose.tools
import
assert_equal
from
nose_parameterized
import
parameterized
import
unittest
import
math
@
parameterized
([
(
2
,
2
,
4
),
(
2
,
3
,
8
),
(
1
,
9
,
1
),
(
0
,
9
,
0
),
])
def
test_pow
(
base
,
exponent
,
expected
):
assert_equal
(
math
.
pow
(
base
,
exponent
),
expected
)
class
TestMathUnitTest
(
unittest
.
TestCase
):
@
parameterized
.
expand
([
(
"negative"
,
-
1.5
,
-
2.0
),
(
"integer"
,
1
,
1.0
),
(
"large fraction"
,
1.6
,
1
),
])
def
test_floor
(
self
,
name
,
input
,
expected
):
assert_equal
(
math
.
floor
(
input
),
expected
)
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