Skip to content

Commit

Permalink
use named structs in ident tests
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Dec 8, 2024
1 parent 13fc1d0 commit d4d58dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testidents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ static void test_clear_command()
assert(itr != idents.end());

assert((*itr).second.name != nullptr);
assert((*itr).second.code != nullptr);
assert((*itr).second.alias.code != nullptr);

clear_command();

assert((*itr).second.name == nullptr);
assert((*itr).second.code == nullptr);
assert((*itr).second.alias.code == nullptr);
}

void testidents()
Expand Down

0 comments on commit d4d58dd

Please sign in to comment.