MCPcopy Create free account
hub / github.com/Cantera/cantera / test_cgs

Method test_cgs

test/python/test_utils.py:30–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 assert checks[dim] == unit
29
30 def test_cgs(self):
31 system = ct.UnitSystem({
32 "length": "cm", "mass": "g", "time": "s",
33 "quantity": "mol", "pressure": "dyn / cm^2", "energy": "erg",
34 "activation-energy": "cal / mol"})
35 units = system.units
36 checks = {
37 "activation-energy": "cal / mol",
38 "current": "A",
39 "energy": "erg",
40 "length": "cm",
41 "mass": "g",
42 "pressure": "dyn / cm^2",
43 "quantity": "mol",
44 "temperature": "K",
45 "time": "s",
46 }
47 for dim, unit in units.items():
48 assert dim in checks
49 assert checks[dim] == unit
50
51 def test_activation_energy(self):
52 system = ct.UnitSystem({"activation-energy": "eV"})

Callers

nothing calls this directly

Calls 1

UnitSystemMethod · 0.45

Tested by

no test coverage detected