public void test_Rule_setVariable3() { Rule R1 = new AlgebraicRule(1,2); int i = R1.setVariable( "r"); assertTrue( i == libsbml.LIBSBML_UNEXPECTED_ATTRIBUTE ); assertEquals( false, R1.isSetVariable() ); R1 = null; }
public void test_internal_consistency_check_99914() { SBMLDocument d = new SBMLDocument(2,4); long errors; Model m = d.createModel(); Rule r = new AlgebraicRule(2,4); d.setLevelAndVersion(2,1,false); r.setVariable("kk"); m.addRule(r); errors = d.checkInternalConsistency(); assertTrue( errors == 0 ); d = null; }