diff --git a/alib2cli/test-src/cli/CliTest.cpp b/alib2cli/test-src/cli/CliTest.cpp index 5bf2947ca295aeac98ffdea682950e91f991bb93..a11d96ed899455750047ee2f28c7376b529a6cdf 100644 --- a/alib2cli/test-src/cli/CliTest.cpp +++ b/alib2cli/test-src/cli/CliTest.cpp @@ -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 {