Explicitly test for canonicity
This will come in handy later, with more complex test cases.
This commit is contained in:
parent
6bc72fdc25
commit
73c2b21b94
2 changed files with 27 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
#include <map>
|
||||
|
||||
// Testing class forward declaration
|
||||
class IntervalMapTest;
|
||||
|
||||
namespace amby {
|
||||
|
||||
template <typename K, typename V> class interval_map {
|
||||
|
|
@ -21,6 +24,9 @@ public:
|
|||
return std::prev(it)->second;
|
||||
}
|
||||
|
||||
// Used in testing
|
||||
friend class ::IntervalMapTest;
|
||||
|
||||
private:
|
||||
V init_;
|
||||
std::map<K, V> underlying_{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue