|
20 | 20 | //! `tests/version-numbers.rs` file with:
|
21 | 21 | //!
|
22 | 22 | //! ```rust
|
23 |
| -//! #[macro_use] |
24 |
| -//! extern crate version_sync; |
25 |
| -//! |
26 | 23 | //! #[test]
|
27 | 24 | //! # fn fake_hidden_test_case_1() {}
|
28 | 25 | //! fn test_readme_deps() {
|
29 |
| -//! assert_markdown_deps_updated!("README.md"); |
| 26 | +//! version_sync::assert_markdown_deps_updated!("README.md"); |
30 | 27 | //! }
|
31 | 28 | //!
|
32 | 29 | //! #[test]
|
33 | 30 | //! # fn fake_hidden_test_case_2() {}
|
34 | 31 | //! fn test_html_root_url() {
|
35 |
| -//! assert_html_root_url_updated!("src/lib.rs"); |
| 32 | +//! version_sync::assert_html_root_url_updated!("src/lib.rs"); |
36 | 33 | //! }
|
37 | 34 | //!
|
38 | 35 | //! # fn main() {
|
@@ -76,14 +73,11 @@ pub use crate::markdown_deps::check_markdown_deps;
|
76 | 73 | /// The typical way to use this macro is from an integration test:
|
77 | 74 | ///
|
78 | 75 | /// ```rust
|
79 |
| -/// #[macro_use] |
80 |
| -/// extern crate version_sync; |
81 |
| -/// |
82 | 76 | /// #[test]
|
83 | 77 | /// # fn fake_hidden_test_case() {}
|
84 | 78 | /// # // The above function ensures test_readme_deps is compiled.
|
85 | 79 | /// fn test_readme_deps() {
|
86 |
| -/// assert_markdown_deps_updated!("README.md"); |
| 80 | +/// version_sync::assert_markdown_deps_updated!("README.md"); |
87 | 81 | /// }
|
88 | 82 | ///
|
89 | 83 | /// # fn main() {
|
@@ -130,14 +124,11 @@ macro_rules! assert_markdown_deps_updated {
|
130 | 124 | /// The typical way to use this macro is from an integration test:
|
131 | 125 | ///
|
132 | 126 | /// ```rust
|
133 |
| -/// #[macro_use] |
134 |
| -/// extern crate version_sync; |
135 |
| -/// |
136 | 127 | /// #[test]
|
137 | 128 | /// # fn fake_hidden_test_case() {}
|
138 | 129 | /// # // The above function ensures test_html_root_url is compiled.
|
139 | 130 | /// fn test_html_root_url() {
|
140 |
| -/// assert_html_root_url_updated!("src/lib.rs"); |
| 131 | +/// version_sync::assert_html_root_url_updated!("src/lib.rs"); |
141 | 132 | /// }
|
142 | 133 | ///
|
143 | 134 | /// # fn main() {
|
@@ -184,15 +175,12 @@ macro_rules! assert_html_root_url_updated {
|
184 | 175 | /// The typical way to use this macro is from an integration test:
|
185 | 176 | ///
|
186 | 177 | /// ```rust
|
187 |
| -/// #[macro_use] |
188 |
| -/// extern crate version_sync; |
189 |
| -/// |
190 | 178 | /// #[test]
|
191 | 179 | /// # fn fake_hidden_test_case() {}
|
192 | 180 | /// # // The above function ensures test_readme_mentions_version is
|
193 | 181 | /// # // compiled.
|
194 | 182 | /// fn test_readme_mentions_version() {
|
195 |
| -/// assert_contains_regex!("README.md", "^### Version {version}"); |
| 183 | +/// version_sync::assert_contains_regex!("README.md", "^### Version {version}"); |
196 | 184 | /// }
|
197 | 185 | ///
|
198 | 186 | /// # fn main() {
|
|
0 commit comments