Changeset 58ff673 in mainline
- Timestamp:
- 2018-07-05T21:41:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3adbbda
- Parents:
- 9ab4026
- git-author:
- Dzejrou <dzejrou@…> (2018-05-15 17:58:59)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/src/internal/test/adaptors.cpp
r9ab4026 r58ff673 153 153 154 154 test_eq( 155 "priority_queue initialized from iterator range op erations",155 "priority_queue initialized from iterator range ops", 156 156 check1.begin(), check1.end(), 157 157 aux::priority_queue_iterator<int>{q1}, … … 166 166 167 167 q2.push(3); 168 test_eq("priority_q eueupush pt1", q2.size(), 6U);169 test_eq("priority_q eueupush pt2", q2.top(), 1);168 test_eq("priority_queue push pt1", q2.size(), 6U); 169 test_eq("priority_queue push pt2", q2.top(), 1); 170 170 171 171 test_eq( 172 "priority_queue initialized from vector and compare op erations",172 "priority_queue initialized from vector and compare ops", 173 173 check2.begin(), check2.end(), 174 174 aux::priority_queue_iterator<int, std::greater<int>>{q2}, … … 179 179 void adaptors_test::test_stack() 180 180 { 181 std::stack<int> s{std::deque<int>{1}}; 182 183 test_eq("stack initialized from deque top", s.top(), 1); 184 test_eq("stack initialized from deque size", s.size(), 1U); 185 test_eq("stack initialized from deque not empty", s.empty(), false); 186 187 s.push(2); 188 test_eq("stack push top", s.top(), 2); 189 test_eq("stack push size", s.size(), 2U); 190 191 s.pop(); 192 test_eq("stack pop top", s.top(), 1); 193 test_eq("stack pop size", s.size(), 1U); 181 194 } 182 195 }
Note:
See TracChangeset
for help on using the changeset viewer.