-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved auto-generated test case name sensitization.
- Loading branch information
Showing
3 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
extern crate skeptic; | ||
|
||
fn main() { | ||
skeptic::generate_doc_tests(&["README.md", "template-example.md", "tests/hashtag-test.md", "tests/should-panic-test.md"]); | ||
skeptic::generate_doc_tests( | ||
&[ | ||
"README.md", | ||
"template-example.md", | ||
"tests/hashtag-test.md", | ||
"tests/should-panic-test.md", | ||
"tests/section-names.md", | ||
], | ||
); | ||
// skeptic::generate_doc_tests(&skeptic::markdown_files_of_directory(".")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Test Case Names With weird spacing are generated without error. | ||
|
||
```rust | ||
struct Person<'a>(&'a str); | ||
fn main() { | ||
let _ = Person("bors"); | ||
} | ||
``` | ||
|
||
## !@#$ Test Cases )(() with {}[] non alphanumeric characters ^$23 characters are "`#`" generated correctly @#$@#$ 22. | ||
|
||
```rust | ||
struct Person<'a>(&'a str); | ||
fn main() { | ||
let _ = Person("bors"); | ||
} | ||
``` | ||
|
||
## Test cases with non ASCII ö_老虎_é characters are generated correctly. | ||
|
||
```rust | ||
struct Person<'a>(&'a str); | ||
fn main() { | ||
let _ = Person("bors"); | ||
} | ||
``` |