Added interface to check library version during runtime

This commit is contained in:
Maksim Shabunin
2018-04-06 13:13:53 +03:00
parent 875b4e212a
commit d2cff38db6
5 changed files with 50 additions and 8 deletions
@@ -2048,4 +2048,11 @@ public class CoreTest extends OpenCVTestCase {
assertEquals(5f, val2);
}
public void testVersion() {
assertEquals(Core.VERSION_MAJOR, Core.getVersionMajor());
assertEquals(Core.VERSION_MINOR, Core.getVersionMinor());
assertEquals(Core.VERSION_REVISION, Core.getVersionRevision());
assertEquals(Core.VERSION, Core.getVersionString());
}
}