void llsaleinfo_test_t::test<7>() { S32 sale_price = 20; LLSaleInfo saleinfo(LLSaleInfo::FS_COPY, sale_price); LLSaleInfo saleinfo1(LLSaleInfo::FS_COPY, sale_price); saleinfo1.accumulate(saleinfo); ensure_equals("LLSaleInfo::accumulate(const LLSaleInfo& sale_info) fn failed", saleinfo1.getSalePrice(), 40); }
void llsaleinfo_test_t::test<4>() { // LLXMLNode is teh suck. #if 0 S32 sale_price = 23445; LLSaleInfo saleinfo(LLSaleInfo::FS_CONTENTS, sale_price); LLXMLNode* x_node = saleinfo.exportFileXML(); LLSaleInfo saleinfo1(LLSaleInfo::FS_NOT, 0); saleinfo1.importXML(x_node); ensure_equals("1.importXML() fn failed", saleinfo.getSalePrice(), saleinfo1.getSalePrice()); ensure_equals("2.importXML() fn failed", saleinfo.getSaleType(), saleinfo1.getSaleType()); #endif }