api: Add unit test for null case of Sort::toString(). (#7865)
authorAina Niemetz <aina.niemetz@gmail.com>
Tue, 4 Jan 2022 01:37:47 +0000 (17:37 -0800)
committerGitHub <noreply@github.com>
Tue, 4 Jan 2022 01:37:47 +0000 (01:37 +0000)
test/unit/api/cpp/sort_black.cpp

index 108b2467093fcda0695613aee181d40ceeb71359..911a151e7595b57743a643221c74c154e8e1400d 100644 (file)
@@ -626,5 +626,10 @@ TEST_F(TestApiBlackSort, sortScopedToString)
   ASSERT_EQ(uninterp_sort.toString(), name);
 }
 
+TEST_F(TestApiBlackSort, toString)
+{
+  ASSERT_NO_THROW(Sort().toString());
+}
+
 }  // namespace test
 }  // namespace cvc5