Beispiel #1
0
    def test_1(self):

        coeff, comp = splitCoeffFromStr("2*A")
        assert (coeff == '2' and comp == 'A')
Beispiel #2
0
    def test_1(self):

        coeff, comp = splitCoeffFromStr(" 1*H2")
        assert (coeff == '1' and comp == 'H2')
Beispiel #3
0
    def test_2(self):

        coeff, comp = splitCoeffFromStr("  3 * A ")
        assert (coeff == '3' and comp == 'A')
Beispiel #4
0
    def test_3(self):

        coeff, comp = splitCoeffFromStr("1.5*H2O")
        assert (coeff == '1.5' and comp == 'H2O')