Changeset 538


Ignore:
Timestamp:
Mar 5, 2006, 10:52:54 AM (16 years ago)
Author:
Peter
Message:

corrected test for KernelLookup?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/kernel_lookup_test.cc

    r537 r538  
    108108  *error << "KernelLookup::KernelLookup(const KernelLookup&)...";
    109109  classifier::KernelLookup k4(k2);
    110   if (k4.rows()!=k2.rows() || k4.columns()!=k2.rows()) {
     110  if (k4.rows()!=k2.rows() || k4.columns()!=k2.columns()) {
    111111    ok =false;
    112112    *error <<   "ERROR:" << std::endl;
    113113    *error << "Dimensions do not agree." << std::endl;
     114    *error << "Dimension: rows " << k4.rows() << " columns " << k4.columns()
     115           << "\nOriginal: rows " << k2.rows() << " columns " << k2.columns()
     116           << std::endl;
    114117  }
    115118  else {
     
    125128        }
    126129  }
    127 
     130  if (ok)
     131    *error << "Ok." << std::endl;
    128132
    129133  if (ok)
    130     *error << "Ok." << std::endl;
     134    *error << "Test Ok." << std::endl;
    131135  if (error!=&std::cerr)
    132136    delete error;
Note: See TracChangeset for help on using the changeset viewer.