Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created April 2, 2017 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/41afd70821df4abbda97e4e2d1056ed3 to your computer and use it in GitHub Desktop.
Save deque-blog/41afd70821df4abbda97e4e2d1056ed3 to your computer and use it in GitHub Desktop.
std::vector<AccountingEntry> expected = ...;
std::vector<AccountingEntry> result = eval_accounting_entries(...);
ASSERT_TRUE(
std::is_permutation(
begin(expected), end(expected),
begin(result), end(result)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment