def testReadDecimal(self): s = TeX() s.input(r"-1.0") i = s.readDecimal() assert i == -1, "expected -1, but got %s" % i s = TeX() s.input(r"-11234.0") i = s.readDecimal() assert i == -11234, "expected -11234, but got %s" % i s = TeX() s.input(r"0.0") i = s.readDecimal() assert i == 0, "expected 0, but got %s" % i
def testReadDecimal(self): s = TeX() s.input(r'-1.0') i = s.readDecimal() assert i == -1, 'expected -1, but got %s' % i s = TeX() s.input(r'-11234.0') i = s.readDecimal() assert i == -11234, 'expected -11234, but got %s' % i s = TeX() s.input(r'0.0') i = s.readDecimal() assert i == 0, 'expected 0, but got %s' % i