Description: Check the version string against the headers' version
 The test compared get_version_string() with a hard-coded "2.15.1", the
 version of the bundled c-blosc2. Debian builds against the system
 libblosc2 (3.x), so compare with the BLOSC2_VERSION_* constants from the
 same headers instead.
Author: Ayushman Bhattacharya <ayushman.elixpo@gmail.com>
Bug-Debian: https://bugs.debian.org/1153409
Forwarded: not-needed
Last-Update: 2026-11-09
---
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2060,7 +2060,11 @@ mod tests {
     #[test]
     fn test_get_version_string() -> Result<()> {
         let version = get_version_string()?;
-        assert_eq!(&version, "2.15.1");
+        let expected = format!(
+            "{}.{}.{}",
+            BLOSC2_VERSION_MAJOR, BLOSC2_VERSION_MINOR, BLOSC2_VERSION_RELEASE
+        );
+        assert_eq!(version, expected);
         Ok(())
     }
 
