Commit b20b9e42 authored by Summer Stapleton's avatar Summer Stapleton Committed by Jesse Mapel
Browse files

Updated unit tests and truthdata (#423)

* Updating EmbreeShapeModel and EmbreeTargetShape unit tests and truth files for updated pcl library

* Removing commented-out tests in Embree unit tests
parent 4ca6daf8
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -190,10 +190,3 @@ Incidence angle: 6.92945
Testing errors

ShapeModel with a bad file name
[pcl::io::load] Don't know how to handle file with extension **USER ERROR** Cannot create a EmbreeShape from NotADSKFile.
**I/O ERROR** Failed creating an EmbreeTargetShape from [NotADSKFile].
**I/O ERROR** Failed loading target shape file [NotADSKFile].
[pcl::io::load] Don't know how to handle file with extension **USER ERROR** Cannot create a EmbreeShape from NotADSKFile.
**I/O ERROR** Failed creating an EmbreeTargetShape from [NotADSKFile].
**I/O ERROR** Failed loading target shape file [NotADSKFile].
+0 −14
Original line number Diff line number Diff line
@@ -304,20 +304,6 @@ int main(int argc, char *argv[]) {
    qDebug() << "Testing errors";
    qDebug() << endl;

    qDebug() << "ShapeModel with a bad file name";
    try {
      testLabel.findGroup("Kernels").findKeyword("ShapeModel").setValue("NotADSKFile");
      EmbreeShapeModel badModel(itokawaTarget, testLabel, manager);
    }
    catch (IException &e) {
      e.print();
    }
    try {
      EmbreeShapeModel badModel(itokawaTarget, "NotADSKFile", manager);
    }
    catch (IException &e) {
      e.print();
    }
  }
  catch (IException &e) {
    qDebug() << "";
+0 −2
Original line number Diff line number Diff line
@@ -364,8 +364,6 @@ Testing error throws


Invalid shapefile
[pcl::io::load] Don't know how to handle file with extension **I/O ERROR** Failed creating an EmbreeTargetShape from [notafile].
**I/O ERROR** Failed loading target shape file [notafile].
**I/O ERROR** Failed creating an EmbreeTargetShape from [junkyshapefile.bds].
**USER ERROR** NAIF DSK file [junkyshapefile.bds] does not exist.
**I/O ERROR** Failed creating an EmbreeTargetShape from [junkydem.cub].
+0 −6
Original line number Diff line number Diff line
@@ -256,12 +256,6 @@ int main(int argc, char *argv[]) {
    qDebug() << endl;

    qDebug() << "Invalid shapefile";
    try {
      EmbreeTargetShape invalidShapefile("notafile");
    }
    catch (IException &e) {
      e.print();
    }
    try {
      EmbreeTargetShape invalidShapefile("junkyshapefile.bds");
    }