@@ -605,43 +605,3 @@ BOOST_AUTO_TEST_CASE(DataQuery)
605605 << DataDescriptorMatcher::Op::Just;
606606 BOOST_CHECK_EQUAL (ops.str (), " andorxorjust" );
607607}
608-
609- BOOST_AUTO_TEST_CASE (CheckOriginWildcard)
610- {
611- auto result0 = DataDescriptorQueryBuilder::parse (" x:TST" );
612- BOOST_CHECK_EQUAL (result0.size (), 1 );
613- DataDescriptorMatcher expectedMatcher00{
614- DataDescriptorMatcher::Op::And,
615- OriginValueMatcher{" TST" },
616- std::make_unique<DataDescriptorMatcher>(
617- DataDescriptorMatcher::Op::And,
618- DescriptionValueMatcher{ContextRef{1 }},
619- std::make_unique<DataDescriptorMatcher>(
620- DataDescriptorMatcher::Op::And,
621- SubSpecificationTypeValueMatcher{ContextRef{2 }},
622- std::make_unique<DataDescriptorMatcher>(DataDescriptorMatcher::Op::Just,
623- StartTimeValueMatcher{ContextRef{0 }})))};
624- auto matcher = std::get_if<DataDescriptorMatcher>(&result0[0 ].matcher );
625- BOOST_REQUIRE (matcher != nullptr );
626- BOOST_CHECK_EQUAL (expectedMatcher00, *matcher);
627- }
628-
629- BOOST_AUTO_TEST_CASE (CheckOriginDescriptionWildcard)
630- {
631- auto result0 = DataDescriptorQueryBuilder::parse (" x:TST/A" );
632- BOOST_CHECK_EQUAL (result0.size (), 1 );
633- DataDescriptorMatcher expectedMatcher00{
634- DataDescriptorMatcher::Op::And,
635- OriginValueMatcher{" TST" },
636- std::make_unique<DataDescriptorMatcher>(
637- DataDescriptorMatcher::Op::And,
638- DescriptionValueMatcher{" A" },
639- std::make_unique<DataDescriptorMatcher>(
640- DataDescriptorMatcher::Op::And,
641- SubSpecificationTypeValueMatcher{ContextRef{1 }},
642- std::make_unique<DataDescriptorMatcher>(DataDescriptorMatcher::Op::Just,
643- StartTimeValueMatcher{ContextRef{0 }})))};
644- auto matcher = std::get_if<DataDescriptorMatcher>(&result0[0 ].matcher );
645- BOOST_REQUIRE (matcher != nullptr );
646- BOOST_CHECK_EQUAL (expectedMatcher00, *matcher);
647- }
0 commit comments