Skip to content

Commit

Permalink
tests: add proptest for control character replacement
Browse files Browse the repository at this point in the history
To try to make sure it doesn't crash or drop characters on weird Unicode.
  • Loading branch information
arxanas committed Jun 30, 2024
1 parent bb4e729 commit 5d0f2e8
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 37 deletions.
185 changes: 185 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions scm-record/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ serde_json = { version = "1.0", optional = true }
assert_matches = "1.5"
criterion = "0.5"
insta = "1.39"
proptest = "1.5.0"
serde_json = "1.0"

[[bench]]
Expand Down
10 changes: 10 additions & 0 deletions scm-record/proptest-regressions/ui.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Seeds for failure cases proptest has generated in the past. It is
# automatically read and these particular cases re-run before any
# novel cases are generated.
#
# It is recommended to check this file in to source control so that
# everyone who runs the test benefits from these saved cases.
cc 4ad364b7a4bfbb4cf16c5dac6dcfbb3e014356930cd855d76f110aed3856a9ed # shrinks to line = "¡"
cc b7d37d182f61b73b6ef4fcd469caff5ccd21379903ce66bd02e14e1abc9344dd # shrinks to line = "\t"
cc de75c8131f6e198916f45226f06c6a09f6cf805a464bbf6954b1a3b03b0c7940 # shrinks to line = "\0"
cc e1eedb87f79680aebd62a9f3f94e31c009e12ab13b855695eb0ce793f43d29aa
Loading

0 comments on commit 5d0f2e8

Please sign in to comment.