Skip to content

Commit

Permalink
1090 - rewording comments in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed Sep 28, 2023
1 parent bfb3081 commit 8a3ee5a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions circuits/cpp/src/aztec3/utils/array.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ TEST(utils_array_validation, test_vector_all_zeros)
const size_t SIZE = 64;
std::array<barretenberg::fr, SIZE> test_vec{};
DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector all zeros");
validate_array(dummyBuilder, test_vec, "Test vector with all zeros");

EXPECT_FALSE(dummyBuilder.failed()) << dummyBuilder.get_first_failure();
}
Expand All @@ -150,7 +150,7 @@ TEST(utils_array_validation, test_vector_all_non_zeros)
}

DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector all non zeros");
validate_array(dummyBuilder, test_vec, "Test vector with all non zeros");

EXPECT_FALSE(dummyBuilder.failed()) << dummyBuilder.get_first_failure();
}
Expand All @@ -166,7 +166,7 @@ TEST(utils_array_validation, test_vector_valid_one_zero)
}

DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector a single zero at the end");
validate_array(dummyBuilder, test_vec, "Test vector with a single zero at the end");

EXPECT_FALSE(dummyBuilder.failed()) << dummyBuilder.get_first_failure();
}
Expand All @@ -177,7 +177,7 @@ TEST(utils_array_validation, test_vector_valid_one_non_zero)
std::array<barretenberg::fr, SIZE> test_vec{};
test_vec[0] = fr(124);
DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector a single non-zero at the beginning");
validate_array(dummyBuilder, test_vec, "Test vector with a single non-zero at the beginning");

EXPECT_FALSE(dummyBuilder.failed()) << dummyBuilder.get_first_failure();
}
Expand All @@ -193,7 +193,7 @@ TEST(utils_array_validation, test_vector_invalid_one_zero_middle)
}
test_vec[67] = fr(0);
DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector a single zero in the middle");
validate_array(dummyBuilder, test_vec, "Test vector with a single zero in the middle");

EXPECT_TRUE(dummyBuilder.failed());
}
Expand All @@ -209,7 +209,7 @@ TEST(utils_array_validation, test_vector_invalid_one_zero_beginning)
}
test_vec[0] = fr(0);
DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector a single zero at the beginning");
validate_array(dummyBuilder, test_vec, "Test vector with a single zero at the beginning");

EXPECT_TRUE(dummyBuilder.failed());
}
Expand Down Expand Up @@ -252,7 +252,7 @@ TEST(utils_array_validation, test_vector_invalid_alternate)
gen = 2437 * gen % 2314;
}
DummyCircuitBuilder dummyBuilder("Builder for array validation test vectors");
validate_array(dummyBuilder, test_vec, "Test vector consisting in alternating zero and non-zero values.");
validate_array(dummyBuilder, test_vec, "Test vector with alternating zero and non-zero values.");

EXPECT_TRUE(dummyBuilder.failed());
}
Expand Down

0 comments on commit 8a3ee5a

Please sign in to comment.