Skip to content

Commit

Permalink
add length assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-super committed Oct 21, 2024
1 parent b594299 commit bcea9a0
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ void testSparseCoverage() throws SQLException {
"2024-01-02 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -496,6 +497,7 @@ void testForwardOverlap() throws SQLException {
"2024-01-02 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -574,6 +576,7 @@ void testBackwardOverlap() throws SQLException {
"2024-01-02 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -676,6 +679,7 @@ void testBackground() throws SQLException {
"2024-01-03 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -872,6 +876,7 @@ void testAmalgamation() throws SQLException {
"2024-01-07 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}
}
Expand Down Expand Up @@ -944,6 +949,7 @@ void rule1_solitary() throws SQLException {
"2024-01-01 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -1037,6 +1043,7 @@ void rule1_bookended() throws SQLException {
"2024-01-03 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -1121,6 +1128,7 @@ void rule2() throws SQLException {
"2024-01-02 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -1207,6 +1215,7 @@ void rule3_basic() throws SQLException {
"2024-01-02 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -1357,6 +1366,7 @@ void rule4() throws SQLException {
"2024-01-03 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}
}
Expand Down Expand Up @@ -1483,6 +1493,7 @@ void nEventsAtSameTime() throws SQLException {
"2024-01-01 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down Expand Up @@ -2063,6 +2074,7 @@ void superDerivedEvents() throws SQLException {
"2024-01-21 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));

// verify for a given DERIVATION_GROUP expected keys are correct, no overlap inside DERIVATION_GROUP
Expand Down Expand Up @@ -2141,6 +2153,7 @@ void superDerivedEvents() throws SQLException {
"2024-01-18 00:00:00+00"
)
);
assertEquals(expectedResults.size(), results.size());
assertTrue(results.containsAll(expectedResults));
}

Expand Down

0 comments on commit bcea9a0

Please sign in to comment.