Skip to content

Commit

Permalink
fix test compilation of swar on 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 10, 2024
1 parent 5ec9f60 commit 7f4859e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/simd/swar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,13 @@ fn test_is_header_value_block() {
assert!(!is_header_value_block([b; BLOCK_SIZE]), "b={}", b);
}

// A few sanity checks on non-uniform bytes for safe-measure
assert!(!is_header_value_block(*b"foo.com\n"));
assert!(!is_header_value_block(*b"o.com\r\nU"));

#[cfg(target_pointer_width = "64")]
{
// A few sanity checks on non-uniform bytes for safe-measure
assert!(!is_header_value_block(*b"foo.com\n"));
assert!(!is_header_value_block(*b"o.com\r\nU"));
}
}

#[test]
Expand Down

0 comments on commit 7f4859e

Please sign in to comment.