Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Add test of case conversion operation in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 22, 2020
1 parent 5f4b1b6 commit fa09a75
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ fn test_literals() {
let expected = "int=0x1 bool=true float=0.01";
assert_eq!(doc, expected);
}

#[test]
fn test_case() {
let doc = paste! {
get_doc!(#[doc = "HTTP " get:upper "!"])
};

let expected = "HTTP GET!";
assert_eq!(doc, expected);
}

0 comments on commit fa09a75

Please sign in to comment.