diff --git a/Cargo.toml b/Cargo.toml index 9ad7ef8..239392f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,4 @@ no_std = [] # This is a no-op, preserved for backward compatibility only. [dev-dependencies] quickcheck = "0.7" +version-sync = "0.8" diff --git a/tests/version-numbers.rs b/tests/version-numbers.rs new file mode 100644 index 0000000..e8be955 --- /dev/null +++ b/tests/version-numbers.rs @@ -0,0 +1,14 @@ +#[test] +fn test_readme_deps() { + version_sync::assert_markdown_deps_updated!("README.md"); +} + +#[test] +fn test_readme_changelog() { + version_sync::assert_contains_regex!("README.md", r"^## {version}$"); +} + +#[test] +fn test_html_root_url() { + version_sync::assert_html_root_url_updated!("src/lib.rs"); +}