(self)
| 11 | class TestUnitSystem: |
| 12 | |
| 13 | def test_default(self): |
| 14 | units = ct.UnitSystem().units |
| 15 | checks = { |
| 16 | "activation-energy": "J / kmol", |
| 17 | "current": "A", |
| 18 | "energy": "J", |
| 19 | "length": "m", |
| 20 | "mass": "kg", |
| 21 | "pressure": "Pa", |
| 22 | "quantity": "kmol", |
| 23 | "temperature": "K", |
| 24 | "time": "s", |
| 25 | } |
| 26 | for dim, unit in units.items(): |
| 27 | assert dim in checks |
| 28 | assert checks[dim] == unit |
| 29 | |
| 30 | def test_cgs(self): |
| 31 | system = ct.UnitSystem({ |
nothing calls this directly
no test coverage detected