Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 69 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ rustpython-literal = ">=0.4.0"
[dev-dependencies]
rustpython-parser = "0.4.0"
rustpython-ast = { version = "0.4.0", features = ["fold", "unparse"] }
rand = "0.8.5"
rand = "0.9.2"
pretty_assertions = "1.4.1"
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub mod transformer;
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use rand::Rng;
use rustpython_ast::text_size::TextRange;
use rustpython_ast::Fold;
use rustpython_ast::TextSize;
Expand Down Expand Up @@ -108,7 +109,7 @@ mod tests {
#[test]
#[ignore = "Fuzzy tests are unstable and should only be used to explore new test cases"]
fn test_fuzzy_files() -> io::Result<()> {
let seed = rand::random::<usize>();
let seed: u64 = rand::rng().random();

for i in 0..10 {
let file_name = format!("./fuzzy_test_files/fuzzy_test{}.py", i);
Expand Down