Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
2eb3b7cb
Commit
2eb3b7cb
authored
Apr 19, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed FIXME in unit tests using strategy.
parent
80ab5794
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/rules/precedences.py
src/rules/precedences.py
+5
-0
tests/test_rules_integrals.py
tests/test_rules_integrals.py
+4
-2
No files found.
src/rules/precedences.py
View file @
2eb3b7cb
...
@@ -6,6 +6,9 @@ from .logarithmic import factor_in_exponent_multiplicant, \
...
@@ -6,6 +6,9 @@ from .logarithmic import factor_in_exponent_multiplicant, \
from
.derivatives
import
chain_rule
from
.derivatives
import
chain_rule
from
.negation
import
double_negation
,
negated_factor
,
negated_nominator
,
\
from
.negation
import
double_negation
,
negated_factor
,
negated_nominator
,
\
negated_denominator
negated_denominator
from
.fractions
import
multiply_with_fraction
from
.integrals
import
factor_out_constant
# Functions to move to the beginning of the possibilities list. Pairs of within
# Functions to move to the beginning of the possibilities list. Pairs of within
# the list itself are compared by their position in the list: lower in the list
# the list itself are compared by their position in the list: lower in the list
...
@@ -37,6 +40,8 @@ RELATIVE = [
...
@@ -37,6 +40,8 @@ RELATIVE = [
(
expand_single
,
expand_double
),
(
expand_single
,
expand_double
),
(
factor_out_exponent_important
,
raise_numerics
),
(
factor_out_exponent_important
,
raise_numerics
),
(
factor_out_constant
,
multiply_with_fraction
)
]
]
...
...
tests/test_rules_integrals.py
View file @
2eb3b7cb
...
@@ -125,8 +125,10 @@ class TestRulesIntegrals(RulesTestCase):
...
@@ -125,8 +125,10 @@ class TestRulesIntegrals(RulesTestCase):
self
.
assertRewrite
([
self
.
assertRewrite
([
'int a / x'
,
'int a / x'
,
'int a * 1 / x dx'
,
'int a * 1 / x dx'
,
# FIXME: 'a int 1 / x dx', # fix with strategy
'aint 1 / x dx'
,
# FIXME: 'aln|x| + c',
'a(ln|x| + c)'
,
'aln|x| + ac'
,
# FIXME: 'aln|x| + c', # ac -> c
])
])
def
test_match_function_integral
(
self
):
def
test_match_function_integral
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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