blob: 35560b024be75bad645f07a2415f972ea49928f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Needed to supress a 2021 incompatability warning in the macro generated code
// The non_fmt_panic lint is not yet available on most Rust versions
#![allow(unknown_lints, non_fmt_panics)]
#[test]
fn test_html_root_url() {
version_sync::assert_html_root_url_updated!("src/lib.rs");
}
#[test]
fn test_changelog() {
version_sync::assert_contains_regex!("CHANGELOG.md", r#"## \[{version}\]"#);
}
#[test]
fn test_serde_with_dependency() {
version_sync::assert_contains_regex!(
"../serde_with/Cargo.toml",
r#"^serde_with_macros = .*? version = "={version}""#
);
}
|