ARCCSS-extremes / climpact2

Combining climdex.pcic and climpact @ UNSW
GNU General Public License v3.0
36 stars 27 forks source link

Test name Similarity_check1 #9

Closed lisavalexander closed 9 years ago

lisavalexander commented 9 years ago

Check that software outputs the same data that it inputs if no operations are performed (tests apply function)

jimjam-slam commented 9 years ago

If no data is provided (ie. arguments to precfile, tsminfile and tsmaxfile are all missing, climpact.loader() fails as expected:

Error in climpact.loader(precname = "pracc_fl", tsminname = "tasmin",  : 
Must provide at least one filename for tsmin, tsmax and/or prec.

If no indices are specified (indices = c() is supplied), climpact.loader() fails as expected (but the error might be tricky for end-users to interpret):

Error in if (indices[1] == "all") indices = as.character(indexlist[, 1]) : 
  argument is of length zero
heroldn commented 9 years ago

Thanks Rensa, added a stop command and better error message for that.

On Sun, May 3, 2015 at 3:24 PM, Rensa notifications@github.com wrote:

If no data is provided (ie. arguments to precfile, tsminfile and tsmaxfile are all missing, climpact.loader() fails as expected:

Error in climpact.loader(precname = "pracc_fl", tsminname = "tasmin", : Must provide at least one filename for tsmin, tsmax and/or prec.

If no indices are specified (indices = c() is supplied), climpact.loader() fails as expected (but the error might be tricky for end-users to interpret):

Error in if (indices[1] == "all") indices = as.character(indexlist[, 1]) : argument is of length zero

— Reply to this email directly or view it on GitHub https://github.com/heroldn/climpact2/issues/9#issuecomment-98437966.