We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c697b55 commit 4d4ecddCopy full SHA for 4d4ecdd
tox/src/lib.rs
@@ -17,3 +17,26 @@ pub fn crate_version_minor() -> u32 {
17
pub fn crate_version_patch() -> u32 {
18
env!("CARGO_PKG_VERSION_PATCH").parse().expect("Invalid patch version")
19
}
20
+
21
+#[cfg(test)]
22
+mod tests {
23
+ #[test]
24
+ fn crate_version_is_not_empty() {
25
+ assert_ne!(crate::crate_version(), "");
26
+ }
27
28
29
+ fn crate_version_major() {
30
+ crate::crate_version_major();
31
32
33
34
+ fn crate_version_minor() {
35
+ crate::crate_version_minor();
36
37
38
39
+ fn crate_version_patch() {
40
+ crate::crate_version_patch();
41
42
+}
0 commit comments