From bb3a7900dfb252298de1a8d67d3d1112524b3dad Mon Sep 17 00:00:00 2001 From: Grigory Ustinov Date: Fri, 9 Feb 2018 18:05:34 +0300 Subject: [PATCH] Fix 2 stack tests --- tests/stack_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stack_test.c b/tests/stack_test.c index e23a042..9776af3 100644 --- a/tests/stack_test.c +++ b/tests/stack_test.c @@ -217,7 +217,7 @@ void test_stack_reverse_on_stack_empty_stack() { old_stack = stack; stack_reversed_stack = stack_reverse(stack); - assert(stack_reversed_stack == old_stack); + assert(stacks_equal(stack_reversed_stack, old_stack)); stack_free(stack); } @@ -236,7 +236,7 @@ void test_stack_reverse_on_stack_with_one_element() { old_stack = stack; stack_reversed_stack = stack_reverse(stack); - assert(stack_reversed_stack == old_stack); + assert(stacks_equal(stack_reversed_stack, old_stack)); stack_free(stack); }