Skip to content
Snippets Groups Projects
Commit de759cd0 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

test algorithm unregister

parent c5828e62
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,13 @@ void CliTest::testCreateUnique ( ) {
parser = cli::Parser ( cli::Lexer ( "execute $res" ) );
parser.parse ( )->run ( environment );
 
parser = cli::Parser ( cli::Lexer ( "execute Divide <(One) <(One)" ) );
CPPUNIT_ASSERT_NO_THROW ( parser.parse ( )->run ( environment ) );
abstraction::AlgorithmRegistry::unregisterAlgorithm < Divide, double, double > ( abstraction::AlgorithmCategories::AlgorithmCategory::DEFAULT );
abstraction::AlgorithmRegistry::unregisterAlgorithm < Divide, int, int > ( abstraction::AlgorithmCategories::AlgorithmCategory::DEFAULT );
CPPUNIT_ASSERT_THROW ( parser.parse ( )->run ( environment ), exception::CommonException );
}
 
class Source {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment