Skip to content

Commit

Permalink
added some asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
olikraus committed Apr 17, 2016
1 parent ce06a02 commit ec0acc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/intersection/intersection.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

uint8_t array[256];

Expand Down Expand Up @@ -303,6 +304,11 @@ void check_all(void)

void main(void)
{
assert( u8g_is_intersection_decision_tree(4, 6, 7, 9) == 0 );
assert( u8g_is_intersection_decision_tree(4, 6, 6, 9) != 0 );
assert( u8g_is_intersection_decision_tree(6, 9, 4, 6) != 0 );
assert( u8g_is_intersection_decision_tree(7, 9, 4, 6) == 0 );

conditioninit();
check_all();
/*
Expand Down

0 comments on commit ec0acc2

Please sign in to comment.