예제 #1
0
파일: tests.py 프로젝트: jmbarbier/units
 def test_base(self):
     self.assertEqual(evaluate(to_rpn(parse(u"µs"))), [1e-6, [0, 0, 1, 0, 0, 0, 0]])
예제 #2
0
파일: tests.py 프로젝트: jmbarbier/units
 def test_base(self):
     self.assertListEqual(
         to_rpn(parse("cm/s")), [("U", [0.01, [1, 0, 0, 0, 0, 0, 0]], 2), ("U", [1, [0, 0, 1, 0, 0, 0, 0]], 4), "/"]
     )