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

Method test_strings

test/python/test_composite.py:410–413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

408 self.check(arr, arr.info(rows=12, width=self.width), 13)
409
410 def test_strings(self):
411 arr = ct.SolutionArray(self.gas, 26, extra={"foo": "bar", "spam": "eggs"})
412 arr.spam = ["abcdefghijklmnopqrstuvwxyz"[:ix+1] for ix in range(26)]
413 self.check(arr, arr.info(rows=12, width=self.width), 13)
414
415 def test_double_vector(self):
416 arr = ct.SolutionArray(self.gas, 15, extra={"spam": "eggs"})

Callers

nothing calls this directly

Calls 3

checkMethod · 0.95
infoMethod · 0.95
SolutionArrayMethod · 0.80

Tested by

no test coverage detected