Skip to content

Commit

Permalink
removed unused includes
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Oct 26, 2023
1 parent b3df9d3 commit c4b811a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/py3exiv2bind/core/glue/glue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Created by hborcher on 10/4/2017.
//
#include "glue.h"
#include <cassert>
#include <exiv2/exiv2.hpp>
#include <iostream>
using Exiv2::Image;
using Exiv2::ImageFactory;
std::string exiv2_version() {
Expand Down
5 changes: 5 additions & 0 deletions tests/test-core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <catch2/catch.hpp>
#include "glue/glue.h"
#include "glue/Image.h"
#include <regex>

const std::string IMAGE_TEST_PATH(TEST_IMAGE_PATH);

Expand All @@ -29,4 +30,8 @@ TEST_CASE("TIFF files can edit their dpi"){
TEST_CASE("invalid file with set_dpi raises"){
const std::string no_such_file = IMAGE_TEST_PATH + "invalid_file.tif";
REQUIRE_THROWS_AS(set_dpi(no_such_file, 100, 100), Exiv2::Error);
}

TEST_CASE("exiv2_version uses a semantic versioning scheme"){
REQUIRE(std::regex_match(exiv2_version(), std::regex("^([0-9]+)\\.([0-9]+)\\.([0-9]+)$")));
}

0 comments on commit c4b811a

Please sign in to comment.