Skip to content

Commit 1deadb2

Browse files
committed
tests: drop old tests
All of the old tests should be covered by either porting them over explicitly, or in the TOML test suite.
1 parent 4a1a07e commit 1deadb2

38 files changed

+224
-4532
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
- name: Build docs
113113
run: ${{ env.CARGO }} doc --verbose $TARGET
114114
- name: Run subset of tests
115-
run: ${{ env.CARGO }} test --verbose --test default $TARGET
115+
run: ${{ env.CARGO }} test --verbose --test integration $TARGET
116116
- name: Build regex-syntax docs
117117
run: ${{ env.CARGO }} doc --verbose --manifest-path regex-syntax/Cargo.toml $TARGET
118118
- name: Run subset of regex-syntax tests

Cargo.toml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ members = [
2727
"regex-test",
2828
]
2929

30-
[lib]
31-
# There are no benchmarks in the library code itself
32-
bench = false
33-
# Doc tests fail when some features aren't present. The easiest way to work
34-
# around this is to disable automatic doc testing, but explicitly test them
35-
# with `cargo test --doc`.
36-
doctest = false
37-
3830
# Features are documented in the "Crate features" section of the crate docs:
3931
# https://docs.rs/regex/*/#crate-features
4032
[features]
@@ -187,8 +179,6 @@ features = ["alloc", "syntax", "meta", "nfa-pikevm"]
187179
lazy_static = "1"
188180
# For property based tests.
189181
quickcheck = { version = "1.0.3", default-features = false }
190-
# For generating random test data.
191-
rand = { version = "0.8.3", default-features = false, features = ["getrandom", "small_rng"] }
192182
# To check README's example
193183
doc-comment = "0.3"
194184
# For easy error handling in integration tests.
@@ -221,23 +211,9 @@ features = ["atty", "humantime", "termcolor"]
221211
# in this test suite *should* mean there is a corresponding failure in
222212
# regex-automata's test suite.
223213
[[test]]
224-
path = "newtests/lib.rs"
214+
path = "tests/lib.rs"
225215
name = "integration"
226216

227-
# Run the test suite on the default behavior of Regex::new.
228-
# This includes a mish mash of NFAs and DFAs, which are chosen automatically
229-
# based on the regex. We test both of the NFA implementations by forcing their
230-
# usage with the test definitions below. (We can't test the DFA implementations
231-
# in the same way since they can't be used for every regex tested.)
232-
[[test]]
233-
path = "tests/test_default.rs"
234-
name = "default"
235-
236-
# The same as the default tests, but run on bytes::Regex.
237-
[[test]]
238-
path = "tests/test_default_bytes.rs"
239-
name = "default-bytes"
240-
241217
[package.metadata.docs.rs]
242218
# We want to document all features.
243219
all-features = true

newtests/misc.rs

Lines changed: 0 additions & 140 deletions
This file was deleted.

newtests/regression.rs

Lines changed: 0 additions & 73 deletions
This file was deleted.

newtests/regression_fuzz.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)