Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stl_logging unit test don't pass #348

Closed
codewdy opened this issue Jul 20, 2018 · 0 comments
Closed

stl_logging unit test don't pass #348

codewdy opened this issue Jul 20, 2018 · 0 comments

Comments

@codewdy
Copy link

codewdy commented Jul 20, 2018

stl_logging tests logging hashmap and hashset.
due to the element sort in hashmap is undefined, the unit test failed.

Code in stl_logging_unittest.cc:

hash_set<int> hs;
hs.insert(10);
hs.insert(20);
hs.insert(30);
ostringstream ss;
ss << hs;
EXPECT_EQ(ss.str(), "10 20 30");  // For my compiler, ss.str() == "30 20 10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants