~ubuntu-branches/ubuntu/trusty/avogadro/trusty-proposed

« back to all changes in this revision

Viewing changes to libavogadro/tests/moleculetest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rohan Garg
  • Date: 2011-05-20 18:55:49 UTC
  • mfrom: (3.2.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110520185549-berzu8h9f9330xji
Tags: 1.0.3-1ubuntu1
* Merge from debian, remaining changes (LP: #787458, #784267)
  - Disable builds for ARM as build dependency on libOpenGL and 
    libQtOpenGL

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
  QVERIFY(m_molecule->numAtoms() == 1);
239
239
  m_molecule->removeAtom(0ul);
240
240
  QVERIFY(m_molecule->numAtoms() == 0);
 
241
 
 
242
  // Check behavior of removing an atom that is owned by a different
 
243
  // molecule. Should not crash.
 
244
  Molecule mol;
 
245
  a = mol.addAtom();
 
246
  m_molecule->removeAtom(a);
241
247
}
242
248
 
243
249
void MoleculeTest::addBond()
256
262
  QVERIFY(m_molecule->numBonds() == 1);
257
263
  m_molecule->removeBond(0ul);
258
264
  QVERIFY(m_molecule->numBonds() == 0);
 
265
 
 
266
  // Check behavior of removing a bond that is owned by a different
 
267
  // molecule. Should not crash.
 
268
  Molecule mol;
 
269
  b = mol.addBond(0ul);
 
270
  m_molecule->removeBond(b);
259
271
}
260
272
 
261
273
void MoleculeTest::center()