<s> from sympy import ordered <EOL> from ... utils import sympy_equal_to_or_newer_than <EOL> from ... models import multi_mass_spring_damper <EOL> if sympy_equal_to_or_newer_than ( '<STR_LIT>' ) : <EOL> from . . octave_code import OctaveMatrixGenerator <EOL> def test_OctaveMatrixGenerator ( ) : <EOL> expected_m_file = """<STR_LIT>""" <EOL> sys = multi_mass_spring_damper ( <NUM_LIT:3> ) <EOL> q = sys . coordinates <EOL> u = sys . speeds <EOL> p = list ( ordered ( sys . constants_symbols ) ) <EOL> sym_rhs = sys . eom_method . rhs ( ) <EOL> g = OctaveMatrixGenerator ( [ q , u , p ] , [ sym_rhs ] ) <EOL> assert g . doprint ( ) == expected_m_file </s>
