Ignore:
Timestamp:
Sep 27, 2008, 6:27:55 AM (13 years ago)
Author:
Peter
Message:

refs #368 - added several tests. Left now is to add specializations for trait classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data_weight_proxy_test.cc

    r1537 r1538  
    3535      : proxy_(proxy) {}
    3636
     37    inline Proxy get_copy(void) { return proxy_; }
    3738    inline Proxy& operator()(void) { return proxy_; }
    3839    inline const Proxy& operator()(void) const
     
    9596  suite.add(suite.equal(xw3.weight(), 0.5));
    9697
     98  DataWeight xw4(1.602, 1);
     99  holder.get_copy() = xw4;
     100  suite.add(suite.equal(holder().data(), 1.602));
     101  suite.add(suite.equal(holder().weight(), 1));
     102
    97103  return suite.return_value();
    98104}
Note: See TracChangeset for help on using the changeset viewer.