File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,11 @@ def test_as_powers_dict():
18
18
x = Symbol ('x' )
19
19
y = Symbol ('y' )
20
20
21
- assert (2 * x ** y ).as_coefficients_dict () == {2 : 1 , x : y }
22
- assert (2 * x ** 2 * y ** 3 ).as_coefficients_dict () == {2 : 1 , x : 2 , y : 3 }
23
- assert (- oo ).as_coefficients_dict () == {- 1 : 1 , oo : 1 }
24
- assert (x ** y ).as_coefficients_dict () == {x : y }
25
- assert ((1 / Integer (2 ))** y ).as_coefficients_dict () == {2 : - y }
26
- assert (2 ** y ).as_coefficients_dict () == {2 : y }
27
- assert (2 ** - y ).as_coefficients_dict () == {2 : - y }
21
+ assert (2 * x ** y ).as_powers_dict () == {2 : 1 , x : y }
22
+ assert (2 * x ** 2 * y ** 3 ).as_powers_dict () == {2 : 1 , x : 2 , y : 3 }
23
+ assert (- oo ).as_powers_dict () == {Integer (- 1 ): 1 , oo : 1 }
24
+ assert (x ** y ).as_powers_dict () == {x : y }
25
+ assert ((1 / Integer (2 ))** y ).as_powers_dict () == {Integer (2 ): - y }
26
+ assert (x * (1 / Integer (2 ))** y ).as_powers_dict () == {x : Integer (1 ), Integer (2 ): - y }
27
+ assert (2 ** y ).as_powers_dict () == {2 : y }
28
+ assert (2 ** - y ).as_powers_dict () == {2 : - y }
You can’t perform that action at this time.
0 commit comments