4 use Test::More qw | no_plan |;
7 use_ok("CXGN::Cview::Chromosome");
8 use_ok("CXGN::Cview::Marker");
11 my $c = CXGN::Cview::Chromosome->new();
12 my $m = CXGN::Cview::Marker->new($c);
15 is($m->get_offset(), 30, "offset test");
17 $m->set_north_range(15);
18 is($m->get_north_range(), 15, "north range accessor test");
20 $m->set_south_range(22);
21 is($m->get_south_range(), 22, "sourth range test");
23 is($m->get_start(), 15, "start coord test");
24 is($m->get_end(), 52, "end coord test");
26 $m->set_range_coords(60, 100);
27 is($m->get_north_range(), 20, "set_range_coords north_range test");
28 is($m->get_south_range(), 20, "set_range_coords south_range test");
29 is($m->get_offset(), 80, "set_range_coords offset test");
32 is($m->is_label_visible(), 0 || '', "label not visible test");
35 is($m->is_label_visible(), 1, "label visible test");
37 $m->set_marker_name("ABC27");
38 $m->set_location_subscript("B");
39 is($m->get_name(), "ABC27B", "marker complete name test");
42 is($m->is_hidden(), 1, "marker hidden test");
44 is($m->is_hidden(), 0, "marker shown test");