Advertisement
Guest User

Untitled

a guest
May 7th, 2013
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. TEST(Random, fill_array_uint32)
  2. {
  3. CRandom* prng = new CRandom();
  4. CRandom* prng2 = new CRandom();
  5. SGVector<uint32_t> rv(2*SFMT_N32+1), rv2(2*SFMT_N32+1);
  6. prng->fill_array(rv.vector, rv.vlen);
  7. prng2->fill_array(rv2.vector, rv2.vlen);
  8. SG_UNREF(prng); SG_UNREF(prng2);
  9.  
  10. for (int32_t i = 0; i < rv.vlen; i++)
  11. EXPECT_EQ(rv2[i], rv[i]);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement