Changeset 3059


Ignore:
Timestamp:
Jul 2, 2013, 12:49:57 AM (8 years ago)
Author:
Peter
Message:

add test that we can modify data() and weight() elements via WeightedIterator?. refs #765

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator.cc

    r2919 r3059  
    33/*
    44  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
    5   Copyright (C) 2009, 2010, 2012 Peter Johansson
     5  Copyright (C) 2009, 2010, 2012, 2013 Peter Johansson
    66
    77  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    493493  *iter_p = *iter;
    494494  suite.add(*iter_p==*iter); 
     495
     496  (*iter_p).data() = 99;
     497  suite.add(suite.equal(99, (*iter_p).data()));
     498  (*iter_p).weight() = 98;
     499  suite.add(suite.equal(98, (*iter_p).weight()));
    495500}
    496501
Note: See TracChangeset for help on using the changeset viewer.