Skip to content
Snippets Groups Projects
Commit 85459226 authored by Marco Biasini's avatar Marco Biasini Committed by Ansgar Philippsen
Browse files

also parse queries like 'aname=?G' correctly

parent 910e3dee
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,8 @@ BOOST_AUTO_TEST_CASE(test_query_parse_properties)
BOOST_CHECK(Query("grtest:2=8").IsValid());
BOOST_CHECK(Query("gctest:3.0=9").IsValid());
BOOST_CHECK(Query("anita=3").IsValid()==false);
BOOST_CHECK(Query("gc*test=3").IsValid()==false);
BOOST_CHECK(Query("gc?test=3").IsValid()==false);
}
BOOST_AUTO_TEST_CASE(test_query_parse_value_type)
......@@ -279,8 +281,10 @@ BOOST_AUTO_TEST_CASE(test_glob)
ensure_counts(e, "rname=ARG and aname=N?1", 1, 1, 1);
ensure_counts(e, "rname=ARG and aname=NH?", 1, 1, 2);
ensure_counts(e, "rname=ARG and aname=\"*2\"", 1, 1, 1);
ensure_counts(e, "rname=ARG and aname=*2", 1, 1, 1);
ensure_counts(e, "rname=ARG and aname=N?", 1, 1, 1);
ensure_counts(e, "rname=LEU and aname=\"?D?\"", 1, 1, 2);
ensure_counts(e, "rname=LEU and aname=?D?", 1, 1, 2);
}
BOOST_AUTO_TEST_SUITE_END()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment