diff options
-rw-r--r-- | test/test_bitvec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_bitvec.cpp b/test/test_bitvec.cpp index 178b39a..0b6e534 100644 --- a/test/test_bitvec.cpp +++ b/test/test_bitvec.cpp @@ -253,7 +253,7 @@ test_gray_code(Context& ctx) grayCode(r); if (N > 0) { - assert(r == (v ^ (v >> 1))); + assert(N == 1 || r == (v ^ (v >> 1))); T s = r; grayCodeInv(s); |