1
/**********************************************************************
2
bond.cpp - Unit tests for Open Babel OBBond class
4
Copyright (C) 2005-2006 Geoffrey R. Hutchison
6
This file is part of the Open Babel project.
7
For more information, see <http://openbabel.sourceforge.net/>
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation version 2 of the License.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
***********************************************************************/
19
// used to set import/export for Cygwin DLLs
24
#include <openbabel/babelconfig.h>
25
#include <openbabel/mol.h>
26
#include <openbabel/obconversion.h>
32
using namespace OpenBabel;
34
int main(int argc,char *argv[])
36
// turn off slow sync with C-style output (we don't use it anyway).
37
std::ios::sync_with_stdio(false);
41
cout << "Usage: bond" << endl;
42
cout << " Unit tests for OBBond " << endl;
46
cout << "# Unit tests for OBBond \n";
48
// the number of tests for "prove"
51
cout << "ok 1\n"; // for loading tests
53
// OBBond isolation tests (no connection to residue, molecule...)
55
OBAtom emptyAtom, begin1, end1;
56
OBBond emptyBond, bond1;
57
cout << "ok 2\n"; // constructors work OK
59
bond1.SetBegin(&begin1);