From bb522ee2d32f53a69b87e26b655e02b16b987ffe Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Thu, 16 May 2019 16:13:08 +0200 Subject: [PATCH] avoid facepalms in future generations of openstructure developers --- modules/io/tests/test_io_pdb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/io/tests/test_io_pdb.cc b/modules/io/tests/test_io_pdb.cc index 9176f462c..ffc6dd286 100644 --- a/modules/io/tests/test_io_pdb.cc +++ b/modules/io/tests/test_io_pdb.cc @@ -788,7 +788,7 @@ BOOST_AUTO_TEST_CASE(res_num_too_low) mol::EntityHandle ent=mol::CreateEntity(); mol::XCSEditor edi=ent.EditXCS(); - mol::ChainHandle ch = edi.InsertChain(String(1, 'A'));; + mol::ChainHandle ch = edi.InsertChain("A"); mol::ResidueHandle r = edi.AppendResidue(ch, "ARG"); edi.InsertAtom(r,"N", geom::Vec3(26.861, 50.841, 38.803), "N"); edi.InsertAtom(r,"CA", geom::Vec3(27.437, 49.969, 37.786), "C"); @@ -813,7 +813,7 @@ BOOST_AUTO_TEST_CASE(res_num_too_high) mol::EntityHandle ent=mol::CreateEntity(); mol::XCSEditor edi=ent.EditXCS(); - mol::ChainHandle ch = edi.InsertChain(String(1, 'A'));; + mol::ChainHandle ch = edi.InsertChain("A"); mol::ResidueHandle r = edi.AppendResidue(ch, "ARG"); edi.InsertAtom(r,"N", geom::Vec3(26.861, 50.841, 38.803), "N"); edi.InsertAtom(r,"CA", geom::Vec3(27.437, 49.969, 37.786), "C"); -- GitLab