Commit 833a10f3 by Maarten L. Hekkelman

Fix unit test

version bump
parent d41e420e
......@@ -25,7 +25,7 @@
cmake_minimum_required(VERSION 3.15)
# set the project name
project(mkdssp VERSION 4.4.1 LANGUAGES CXX)
project(mkdssp VERSION 4.4.2 LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
......
Version 4.4.2
- Fix unit test
Version 4.4.1
- Generate documentation only when requested
......
......@@ -31,6 +31,7 @@
#include "dssp.hpp"
#include "dssp-io.hpp"
#include "revision.hpp"
#include <cif++/dictionary_parser.hpp>
......@@ -99,7 +100,9 @@ BOOST_AUTO_TEST_CASE(ut_dssp)
std::string line_t, line_r;
BOOST_CHECK(std::getline(test, line_t) and std::getline(reference, line_r));
const char *kHeaderLineStart = "==== Secondary Structure Definition by the program DSSP, NKI version 4.4.0 ====";
char kHeaderLineStart[] = "==== Secondary Structure Definition by the program DSSP, NKI version 4.4.0 ====";
memcpy(kHeaderLineStart + 69, kVersionNumber, strlen(kVersionNumber));
BOOST_CHECK(line_t.compare(0, std::strlen(kHeaderLineStart), kHeaderLineStart) == 0);
// BOOST_CHECK(line_r.compare(0, std::strlen(kHeaderLineStart), kHeaderLineStart) == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment