Skip to content
Snippets Groups Projects
Verified Commit 3607d555 authored by Pavel Doležal's avatar Pavel Doležal
Browse files

Tests: Minor test fixes

parent 793e8bc5
No related branches found
No related tags found
1 merge request!29Add Python bindings generated by pybind11
Pipeline #107456 passed
......@@ -88,8 +88,9 @@ namespace CDNS {
AddressEventCount aec, aec2, aec3;
BlockTable<AddressEventCount> bt;
aec2.ae_code = 4;
aec.ae_code = 4;
aec2.ae_code = 7;
aec3.ae_code = 4;
index_t index = bt.add(aec);
index_t index2 = bt.add(aec2);
......
......@@ -14,12 +14,19 @@
#include "../src/cdns.h"
namespace CDNS {
TEST(TimestampTest, TimestampCtest) {
TEST(TimestampTest, TimestampDefCtest) {
Timestamp ts;
EXPECT_EQ(ts.m_secs, 0);
EXPECT_EQ(ts.m_ticks, 0);
}
TEST(TimestampTest, TimestampCtest) {
Timestamp ts = {42, 170};
EXPECT_EQ(ts.m_secs, 42);
EXPECT_EQ(ts.m_ticks, 170);
}
TEST(TimestampTest, TimestampCompareTest) {
Timestamp ts = {42, 170};
Timestamp ts2 = {56, 50};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment