Skip to content

Commit

Permalink
attempt to resolve compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjmurray committed Sep 28, 2024
1 parent db6bf47 commit 13d9a9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_basic_rng/test_r123.cc
Original file line number Diff line number Diff line change
Expand Up @@ -678,17 +678,16 @@ class TestRNGState : public ::testing::Test {

void test_uint_key_constructors() {
using RNG = r123::Philox4x32;
ASSERT_EQ(RandBLAS::RNGState<RNG>::len_k, 2);
// No-arugment constructor
RandBLAS::RNGState<RNG> s;
ASSERT_EQ(s.len_k, 2);
ASSERT_EQ(s.key[0], 0);
ASSERT_EQ(s.key[1], 0);
for (int i = 0; i < 4; ++i) {
ASSERT_EQ(s.counter[i], 0) << "Failed at index " << i;
}
// unsigned-int constructor
RandBLAS::RNGState<RNG> t(42);
ASSERT_EQ(t.len_k, 2);
ASSERT_EQ(t.key[0], 42);
ASSERT_EQ(t.key[1], 0);
for (int i = 0; i < 4; ++i) {
Expand Down

0 comments on commit 13d9a9b

Please sign in to comment.