Exemple #1
0
    def test_check_formula_7(self):
        input = "V+4"
        result = cf._check_formula(input)
        expected = ["V", "+", "4"]

        self.assertEqual(result, expected)
Exemple #2
0
    def test_check_formula_1(self):
        input = 'Fe2(SO4)3'
        result = cf._check_formula(input)
        expected = ['Fe', '2', '(', 'S', 'O', '4', ')', '3']

        self.assertEqual(result, expected)
Exemple #3
0
    def test_check_formula_5(self):
        input = "C100H202"
        result = cf._check_formula(input)
        expected = ["C", "100", "H", "202"]

        self.assertEqual(result, expected)
Exemple #4
0
    def test_check_formula_6(self):
        input = "Fe+++"
        result = cf._check_formula(input)
        expected = ["Fe", "+++"]

        self.assertEqual(result, expected)
Exemple #5
0
    def test_check_formula_6(self):
        input = 'Fe+++'
        result = cf._check_formula(input)
        expected = ['Fe', '+++']

        self.assertEqual(result, expected)
Exemple #6
0
 def test_check_formula_2(self):
     input = 'C7H16'
     result = cf._check_formula(input)        
     expected = ['C', '7', 'H', '16']
     
     self.assertEqual(result,expected)
Exemple #7
0
    def test_check_formula_1(self):
        input = "Fe2(SO4)3"
        result = cf._check_formula(input)
        expected = ["Fe", "2", "(", "S", "O", "4", ")", "3"]

        self.assertEqual(result, expected)
Exemple #8
0
    def test_check_formula_4(self):
        input = 'MgCl2'
        result = cf._check_formula(input)
        expected = ['Mg', 'Cl', '2']

        self.assertEqual(result, expected)
Exemple #9
0
 def test_check_formula_6(self):
     input = 'Fe+++'
     result = cf._check_formula(input)        
     expected = ['Fe', '+++']
     
     self.assertEqual(result,expected)
Exemple #10
0
 def test_check_formula_7(self):
     input = 'V+4'
     result = cf._check_formula(input)        
     expected = ['V', '+', '4']
     
     self.assertEqual(result,expected)
Exemple #11
0
 def test_check_formula_5(self):
     input = 'C100H202'
     result = cf._check_formula(input)        
     expected = ['C', '100', 'H', '202']
     
     self.assertEqual(result,expected)
Exemple #12
0
 def test_check_formula_4(self):
     input = 'MgCl2'
     result = cf._check_formula(input)        
     expected = ['Mg', 'Cl', '2']
     
     self.assertEqual(result,expected)
Exemple #13
0
 def test_check_formula_3(self):
     input = '(NH3)2SO4'
     result = cf._check_formula(input)        
     expected = ['(', 'N', 'H', '3', ')', '2', 'S', 'O', '4']
     
     self.assertEqual(result,expected)
Exemple #14
0
    def test_check_formula_2(self):
        input = 'C7H16'
        result = cf._check_formula(input)
        expected = ['C', '7', 'H', '16']

        self.assertEqual(result, expected)
Exemple #15
0
    def test_check_formula_2(self):
        input = "C7H16"
        result = cf._check_formula(input)
        expected = ["C", "7", "H", "16"]

        self.assertEqual(result, expected)
Exemple #16
0
    def test_check_formula_3(self):
        input = '(NH3)2SO4'
        result = cf._check_formula(input)
        expected = ['(', 'N', 'H', '3', ')', '2', 'S', 'O', '4']

        self.assertEqual(result, expected)
Exemple #17
0
    def test_check_formula_3(self):
        input = "(NH3)2SO4"
        result = cf._check_formula(input)
        expected = ["(", "N", "H", "3", ")", "2", "S", "O", "4"]

        self.assertEqual(result, expected)
Exemple #18
0
    def test_check_formula_5(self):
        input = 'C100H202'
        result = cf._check_formula(input)
        expected = ['C', '100', 'H', '202']

        self.assertEqual(result, expected)
Exemple #19
0
    def test_check_formula_4(self):
        input = "MgCl2"
        result = cf._check_formula(input)
        expected = ["Mg", "Cl", "2"]

        self.assertEqual(result, expected)
Exemple #20
0
    def test_check_formula_7(self):
        input = 'V+4'
        result = cf._check_formula(input)
        expected = ['V', '+', '4']

        self.assertEqual(result, expected)
Exemple #21
0
 def test_check_formula_1(self):
     input = 'Fe2(SO4)3'
     result = cf._check_formula(input)        
     expected = ['Fe', '2', '(', 'S', 'O', '4', ')', '3']
     
     self.assertEqual(result,expected)