public void test_element_cn_rational() { string s = wrapMathML("<cn type='rational'> 12342 <sep/> 2342342 </cn>" ); N = libsbml.readMathMLFromString(s); assertTrue( N != null ); assertTrue( N.getType() == libsbml.AST_RATIONAL ); assertTrue( N.getNumerator() == 12342 ); assertTrue( N.getDenominator() == 2342342 ); assertTrue( N.getNumChildren() == 0 ); }