Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Unified Diff: test/cctest/test-dataflow.cc

Issue 668259: Add copy constructor and assignment operator to the BitVector class. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/data-flow.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-dataflow.cc
===================================================================
--- test/cctest/test-dataflow.cc (revision 4056)
+++ test/cctest/test-dataflow.cc (working copy)
@@ -61,6 +61,20 @@
}
{
+ BitVector v(15);
+ v.Add(0);
+ BitVector w = v;
Kevin Millikin (Chromium) 2010/03/09 09:38:10 This is not testing the assignment operator.
fschneider 2010/03/09 09:51:53 Done.
+ CHECK(w.Contains(0));
+ w.Add(1);
+ BitVector u(w);
+ CHECK(u.Contains(0));
+ CHECK(u.Contains(1));
+ v.Union(w);
+ CHECK(v.Contains(0));
+ CHECK(v.Contains(1));
+ }
+
+ {
BitVector v(35);
v.Add(0);
BitVector w(35);
« no previous file with comments | « src/data-flow.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698