Unverified Commit a1bdbe8d authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

added hicrop tests (#4072)

* added hicrop tests

* removed prints

* fixed bugs

* removed old tests

* swapped header funcs
parent fefd6993
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -413,7 +413,7 @@ namespace Isis {
    c_args = (char**)malloc(sizeof(char*)*args.size());
    
    for (size_t i = 0; i < args.size(); i++) {
      c_args[i] = (char*)malloc(sizeof(char)*args[i].size());
      c_args[i] = (char*)malloc(sizeof(char)*args[i].size()+1);
      strcpy(c_args[i], args[i].toLatin1().data());
    }

@@ -484,6 +484,7 @@ namespace Isis {
      vector<QString> paramValue;

      getNextParameter(currArgument, paramName, paramValue);
       
      // we now have a name,value pair
      if (paramName[0] == '-') {
        paramName = paramName.toUpper();
@@ -520,6 +521,7 @@ namespace Isis {
        }

        evaluateOption(paramName, realValue);
        
        continue;
      }

@@ -530,6 +532,7 @@ namespace Isis {
      catch (IException &e) {
        throw IException(e, IException::User, "Invalid command line", _FILEINFO_);
      }

    }

    // Can't use the batchlist with the gui, save, last or restore option
+658 −0

File added.

Preview size limit exceeded, changes collapsed.

+12 −0
Original line number Diff line number Diff line
#ifndef hicrop_h 
#define hicrop_h

#include "Cube.h"
#include "UserInterface.h"

namespace Isis{
  extern void hicrop(UserInterface &ui, Pvl *log=nullptr);
  extern void hicrop(Cube *cube, UserInterface &ui, Pvl *log=nullptr);
}

#endif
 No newline at end of file
+14 −639

File changed.

Preview size limit exceeded, changes collapsed.

+0 −4
Original line number Diff line number Diff line
BLANKS = "%-6s"    
LENGTH = "%-40s"

include $(ISISROOT)/make/isismake.tststree
Loading