diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-12-07 13:56:11 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-07 13:56:11 -0800 |
commit | c30f1137121315b0d3641af6dc61e3b047f940e1 (patch) | |
tree | f118eaf670505e6a63f28bc8df845520f67adc55 /deps/v8/test/cctest/test-dataflow.cc | |
parent | 5b8c62f7d12c1c5a553e765ba05bbd8a7e17ee47 (diff) | |
download | node-new-c30f1137121315b0d3641af6dc61e3b047f940e1.tar.gz |
Upgrade V8 to 3.0.0
Diffstat (limited to 'deps/v8/test/cctest/test-dataflow.cc')
-rw-r--r-- | deps/v8/test/cctest/test-dataflow.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/test-dataflow.cc b/deps/v8/test/cctest/test-dataflow.cc index 003ac6680b..5894de2a82 100644 --- a/deps/v8/test/cctest/test-dataflow.cc +++ b/deps/v8/test/cctest/test-dataflow.cc @@ -52,6 +52,24 @@ TEST(BitVector) { } { + BitVector v(64); + v.Add(27); + v.Add(30); + v.Add(31); + v.Add(33); + BitVector::Iterator iter(&v); + CHECK_EQ(27, iter.Current()); + iter.Advance(); + CHECK_EQ(30, iter.Current()); + iter.Advance(); + CHECK_EQ(31, iter.Current()); + iter.Advance(); + CHECK_EQ(33, iter.Current()); + iter.Advance(); + CHECK(iter.Done()); + } + + { BitVector v(15); v.Add(0); BitVector w(15); |