Skip to content

Commit

Permalink
Fix test cases after renaming field.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Mar 11, 2020
1 parent b5d3feb commit 751070d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ void test_rules_stats()
condition: all of them }",
&stats);

assert_true_expr(stats.rules == 1);
assert_true_expr(stats.strings == 1);
assert_true_expr(stats.num_rules == 1);
assert_true_expr(stats.num_strings == 1);
assert_true_expr(stats.ac_root_match_list_length == 1);

stats_for_rules("\
Expand All @@ -699,8 +699,8 @@ void test_rules_stats()
condition: all of them }",
&stats);

assert_true_expr(stats.rules == 1);
assert_true_expr(stats.strings == 1);
assert_true_expr(stats.num_rules == 1);
assert_true_expr(stats.num_strings == 1);
assert_true_expr(stats.ac_matches == 1);
assert_true_expr(stats.ac_root_match_list_length == 0);
assert_true_expr(stats.top_ac_match_list_lengths[0] == 1);
Expand All @@ -719,8 +719,8 @@ void test_rules_stats()
condition: all of them }",
&stats);

assert_true_expr(stats.rules == 1);
assert_true_expr(stats.strings == 6);
assert_true_expr(stats.num_rules == 1);
assert_true_expr(stats.num_strings == 6);
assert_true_expr(stats.ac_matches == 6);
assert_true_expr(stats.ac_root_match_list_length == 0);
assert_true_expr(stats.top_ac_match_list_lengths[0] == 3);
Expand All @@ -741,8 +741,8 @@ void test_rules_stats()
condition: all of them }",
&stats);

assert_true_expr(stats.rules == 1);
assert_true_expr(stats.strings == 8);
assert_true_expr(stats.num_rules == 1);
assert_true_expr(stats.num_strings == 8);
assert_true_expr(stats.ac_matches == 8);
assert_true_expr(stats.ac_root_match_list_length == 0);
assert_true_expr(stats.top_ac_match_list_lengths[0] == 3);
Expand All @@ -754,8 +754,8 @@ void test_rules_stats()
condition: true }",
&stats);

assert_true_expr(stats.rules == 1);
assert_true_expr(stats.strings == 0);
assert_true_expr(stats.num_rules == 1);
assert_true_expr(stats.num_strings== 0);
assert_true_expr(stats.ac_matches == 0);
assert_true_expr(stats.ac_root_match_list_length == 0);
}
Expand Down

0 comments on commit 751070d

Please sign in to comment.