Skip to content
Snippets Groups Projects

First unit tests

Merged Leon Dietrich requested to merge first_unit_tests into master
17 unresolved threads
Compare and Show latest version
1 file
+ 21
1
Compare changes
  • Side-by-side
  • Inline
+ 21
1
@@ -49,9 +49,13 @@ public:
@@ -49,9 +49,13 @@ public:
return arr.at(pos);
return arr.at(pos);
}
}
inline constexpr const_reference operator[](size_t pos) noexcept {
inline constexpr const_reference operator[](size_t pos) const noexcept {
return arr.operator[](pos);
return arr.operator[](pos);
}
}
 
 
inline uint8_t& operator[](size_t pos) noexcept {
 
return arr.operator[](pos);
 
}
inline bool advance(size_t i) {
inline bool advance(size_t i) {
if (this->actual_length + i > this->max_size()) {
if (this->actual_length + i > this->max_size()) {
@@ -78,6 +82,22 @@ public:
@@ -78,6 +82,22 @@ public:
constexpr uint8_t* raw() noexcept {
constexpr uint8_t* raw() noexcept {
return this->arr.data();
return this->arr.data();
}
}
 
 
constexpr std::array<uint8_t, pkg_size>::iterator begin() noexcept {
 
return this->arr.begin();
 
}
 
 
constexpr std::array<uint8_t, pkg_size>::iterator end() noexcept {
 
return this->arr.end();
 
}
 
 
constexpr std::array<uint8_t, pkg_size>::const_iterator cbegin() const noexcept {
 
return this->arr.cbegin();
 
}
 
 
constexpr std::array<uint8_t, pkg_size>::const_iterator cend() const noexcept {
 
return this->arr.cend();
 
}
};
};
class address_augmented_iorecord : public iorecord {
class address_augmented_iorecord : public iorecord {
Loading