Commit 35ab7d58 authored by Jonathan Hanks's avatar Jonathan Hanks

Added more test cases.

parent e29dd21e
......@@ -24,6 +24,30 @@ TEST_CASE( "Basic completion behavior" )
REQUIRE( results[ 0 ] == "H0:VAC" );
REQUIRE( results[ 1 ] == "H1:SYS" );
}
{
completion::string_list results =
completion::search( db.channels.begin( ), db.channels.end( ), "H1:SY" );
REQUIRE( results.size( ) == 1 );
REQUIRE( results[ 0 ] == "H1:SYS" );
}
{
completion::string_list results =
completion::search( db.channels.begin( ), db.channels.end( ), "H1:SYS" );
REQUIRE( results.size( ) == 1 );
REQUIRE( results[ 0 ] == "H1:SYS-SUB" );
}
{
completion::string_list results =
completion::search( db.channels.begin( ), db.channels.end( ), "H1:SYS-SUB" );
REQUIRE( results.size( ) == 3 );
REQUIRE( results[ 0 ] == "H1:SYS-SUB_A" );
REQUIRE( results[ 1 ] == "H1:SYS-SUB_B" );
REQUIRE( results[ 2 ] == "H1:SYS-SUB_C" );
}
}
TEST_CASE( "Basic DB sorting" )
......
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