Skip to content

Commit

Permalink
current test level working
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmankoko committed Jan 9, 2024
1 parent 5371117 commit acba293
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions source/stdcpp/test/set.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,4 @@ unittest
p.clear;
assert(p.size == 0);
assert(p.empty == 1);
/* p.erase(5);
p.insert(6);
p.clear;
assert(p.size == 0);
assert(p.empty == 1);
set!int q = a;
q.swap(p);
q.insert(4);
q.insert(4);
q.insert(4);
assert(q.size == 1);
assert(q.count(4) == 1);//count for set only results in 0 for not present or 1 for present
assert(q.count(5) == 0);
assert(q.sizeof == 48);
assert(q.contains(4) == 1); // q contains 4 evaluates to true
auto iter = q.find(4);
set!int w = q; //copy constructor
// assert(*iter == 4);
*/
}

0 comments on commit acba293

Please sign in to comment.