Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

stl_logging unit test don't pass #348

@codewdy

Description

@codewdy

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions