2366 |
06 Dec 10 |
peter |
// $Id$ |
2366 |
06 Dec 10 |
peter |
2 |
|
2366 |
06 Dec 10 |
peter |
3 |
/* |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2010, 2012 Peter Johansson |
2366 |
06 Dec 10 |
peter |
5 |
|
2366 |
06 Dec 10 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
2366 |
06 Dec 10 |
peter |
7 |
|
2366 |
06 Dec 10 |
peter |
The yat library is free software; you can redistribute it and/or |
2366 |
06 Dec 10 |
peter |
modify it under the terms of the GNU General Public License as |
2366 |
06 Dec 10 |
peter |
published by the Free Software Foundation; either version 3 of the |
2366 |
06 Dec 10 |
peter |
License, or (at your option) any later version. |
2366 |
06 Dec 10 |
peter |
12 |
|
2366 |
06 Dec 10 |
peter |
The yat library is distributed in the hope that it will be useful, |
2366 |
06 Dec 10 |
peter |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2366 |
06 Dec 10 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2366 |
06 Dec 10 |
peter |
General Public License for more details. |
2366 |
06 Dec 10 |
peter |
17 |
|
2366 |
06 Dec 10 |
peter |
You should have received a copy of the GNU General Public License |
2366 |
06 Dec 10 |
peter |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
2366 |
06 Dec 10 |
peter |
20 |
*/ |
2366 |
06 Dec 10 |
peter |
21 |
|
2881 |
18 Nov 12 |
peter |
22 |
#include <config.h> |
2881 |
18 Nov 12 |
peter |
23 |
|
2366 |
06 Dec 10 |
peter |
24 |
#include "Suite.h" |
2366 |
06 Dec 10 |
peter |
25 |
|
2366 |
06 Dec 10 |
peter |
26 |
#include "yat/omic/GenomicPosition.h" |
2366 |
06 Dec 10 |
peter |
27 |
|
2366 |
06 Dec 10 |
peter |
28 |
using namespace theplu::yat; |
2366 |
06 Dec 10 |
peter |
29 |
|
2366 |
06 Dec 10 |
peter |
30 |
int main(int argc,char* argv[]) |
4200 |
19 Aug 22 |
peter |
31 |
{ |
2366 |
06 Dec 10 |
peter |
32 |
test::Suite suite(argc, argv); |
2366 |
06 Dec 10 |
peter |
33 |
using omic::GenomicPosition; |
4200 |
19 Aug 22 |
peter |
34 |
|
2366 |
06 Dec 10 |
peter |
35 |
GenomicPosition p1; |
2366 |
06 Dec 10 |
peter |
36 |
GenomicPosition p2("chrX","12345"); |
2366 |
06 Dec 10 |
peter |
37 |
GenomicPosition p3(1,123); |
2366 |
06 Dec 10 |
peter |
38 |
suite.add(p3.chromosome()==1); |
2366 |
06 Dec 10 |
peter |
39 |
suite.add(p3.position()==123); |
2366 |
06 Dec 10 |
peter |
40 |
|
2366 |
06 Dec 10 |
peter |
41 |
suite.add(p3==p3); |
2366 |
06 Dec 10 |
peter |
42 |
suite.add(p2!=p3); |
2366 |
06 Dec 10 |
peter |
43 |
suite.add(p2>p3); |
2366 |
06 Dec 10 |
peter |
44 |
suite.add(p2>=p3); |
2366 |
06 Dec 10 |
peter |
45 |
suite.add(p3>=p3); |
2366 |
06 Dec 10 |
peter |
46 |
suite.add(p3<p2); |
2366 |
06 Dec 10 |
peter |
47 |
suite.add(p3<=p2); |
2366 |
06 Dec 10 |
peter |
48 |
suite.add(p3<=p3); |
4200 |
19 Aug 22 |
peter |
49 |
|
2366 |
06 Dec 10 |
peter |
50 |
p3.position() = 1234; |
2366 |
06 Dec 10 |
peter |
51 |
suite.add(p3.position()==1234); |
2366 |
06 Dec 10 |
peter |
52 |
p3.chromosome() = 2; |
2366 |
06 Dec 10 |
peter |
53 |
suite.add(p3.chromosome()==2); |
2366 |
06 Dec 10 |
peter |
54 |
|
2366 |
06 Dec 10 |
peter |
55 |
return suite.return_value(); |
2366 |
06 Dec 10 |
peter |
56 |
} |