Skip to content

Commit

Permalink
running the tests for planting date
Browse files Browse the repository at this point in the history
  • Loading branch information
Sri-2023 committed Aug 30, 2023
1 parent 82ef1bc commit 592da5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions t/unit_fixture/CXGN/Trial.t
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ my $new_trial = CXGN::Trial::TrialCreate->new(
user_name => 'janedoe', #not implemented
program => 'test',
trial_year => 2014,

trial_description => 'another test trial...',
design_type => 'RCBD',
trial_type => $trial_type_cvterm_id,
Expand Down Expand Up @@ -918,6 +919,19 @@ is($trial->get_year(), 2014, "get year test");
$trial->set_year(2013);
is($trial->get_year(), 2013, "set year test");

# test planting date accessors
#
#$trial-> set_planting_date ('2016/01/02 12:21:12');
#my $planting_date = $trial -> get_planting_date();
#print STDERR Dumper $planting_date;
#is($planting_date, '2016-January-02 12:21:12', "set planting_date test");
#$trial-> set_planting_date('2016/01/04 12:21:12');
#$planting_date = $trial-> get_planting_date();
#is($planting_date, '2016-January-04 12:21:12', "update/set planting_date test");
#$trial-> remove_planting_date ('2016/01/04 12:21:12');
#$planting_date = $trial-> get_planting_date();
#ok(!$planting_date, "test remove planting_date");

# test breeding program accessors
#
is($trial->get_breeding_program(), 'test', "get breeding program test");
Expand Down

0 comments on commit 592da5f

Please sign in to comment.