Skip to content

Commit

Permalink
Disable rng tests on 32bit platforms
Browse files Browse the repository at this point in the history
Fixes #621
  • Loading branch information
mitsuhiko committed Oct 27, 2024
1 parent d51aecc commit 6961c35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions minijinja-contrib/tests/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ fn test_pluralize() {

#[test]
#[cfg(feature = "rand")]
#[cfg(target_pointer_width = "64")]
fn test_random() {
// The small rng is pointer size specific. Test on 64bit platforms only
use minijinja::render;
use minijinja_contrib::filters::random;

Expand Down
2 changes: 2 additions & 0 deletions minijinja-contrib/tests/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ joiner: {{ j }}"), @r###"

#[test]
#[cfg(feature = "rand")]
#[cfg(target_pointer_width = "64")]
fn test_lispum() {
// The small rng is pointer size specific. Test on 64bit platforms only
use minijinja_contrib::globals::lipsum;

let mut env = Environment::new();
Expand Down

0 comments on commit 6961c35

Please sign in to comment.