From 6dfda0e777b6d77f63fb2236caa7f98defe4d981 Mon Sep 17 00:00:00 2001 From: Gene Stark Date: Wed, 26 Jan 2022 17:54:28 -0500 Subject: [PATCH] Change test to be consistent with the behavior specified in the assignment handout. --- hw1/tests/basecode_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw1/tests/basecode_tests.c b/hw1/tests/basecode_tests.c index d8cf83b..99deac6 100644 --- a/hw1/tests/basecode_tests.c +++ b/hw1/tests/basecode_tests.c @@ -38,7 +38,7 @@ Test(basecode_suite, validargs_canonicalize_test) { int ret = validargs(argc, argv); int exp_ret = 0; int opt = global_options; - int exp_opt = CANONICALIZE_OPTION | 0x4; + int exp_opt = CANONICALIZE_OPTION; cr_assert_eq(ret, exp_ret, "Invalid return for validargs. Got: %d | Expected: %d", ret, exp_ret); cr_assert_eq(opt, exp_opt, "Invalid options settings. Got: 0x%x | Expected: 0x%x",