import unittest

from expressions import solvers
import expressions as ex


class TestNatural(unittest.TestCase):
    def test_natural_argument(self):
        expr = solvers.System(
            x - 2*x + 5*x - 46*(235-24) == x + 2 for x in ex.Object)
        result = solvers.solve(expr)
        self.assertEqual(result, {'x': 3236.0})


if __name__ == '__main__':
    unittest.main()

@@ -83,15 +83,25 @@
 Test
-Natural
+CoefficientMatrix
 (uni
@@ -125,33 +125,582 @@
     
-def test_natural_argument
+@unittest.skip('Not yet implemented')%0A    def test_coefficient_matrix(self):%0A        system = ex.System(%0A            -x1  + 2*x2  - 3*x3  == 4  %7C%0A            5*x1 - 6*x2  + 7*x3  == -8 %7C%0A            9*x1 + 10*x2 - 11*x3 == 12%0A                for x1, x2, x3 in ex.Object)%0A        expected = ex.Object(%5B%0A            %5B-1, 2, -3, 4%5D,%0A            %5B5, -6, 7, -8%5D,%0A            %5B9, 10, -11, 12%5D%5D)%0A        obtained = solvers.extract_coefficients(system)%0A        self.assertEqual(obtained, expected)%0A%0A%0Aclass TestSolver(unittest.TestCase):%0A    def solve_single_variable_linear_equation
 (sel
@@ -718,23 +718,18 @@
  expr = 
-solvers
+ex
 .System(

add test case for a system of linear equalities