diff options
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | src/tests/catchy/catchy_tests.h | 8 | ||||
-rw-r--r-- | src/tests/test_mceliece.cpp | 1 |
3 files changed, 8 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore index 4f79b9a22..998a8a173 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ Makefile* libbotan*.so.* *.a *.so +*.dylib *.exp *.lib *.dll @@ -26,8 +27,10 @@ botan-test *.orig *.rej -# Python cache +# Cache and temporary files *.pyc +.DS_Store +*.swp # Amalgamation code botan_all.h diff --git a/src/tests/catchy/catchy_tests.h b/src/tests/catchy/catchy_tests.h index 99ad03f31..ab621d0f9 100644 --- a/src/tests/catchy/catchy_tests.h +++ b/src/tests/catchy/catchy_tests.h @@ -66,10 +66,10 @@ namespace Matchers { virtual ~Equals() override {} - virtual bool match( bool const& expr ) const { + virtual bool match( bool const& expr ) const override { return m_expected == expr; } - virtual std::string toString() const { + virtual std::string toString() const override { return "== " + Catch::toString(m_expected); } @@ -86,10 +86,10 @@ namespace Matchers { virtual ~Equals() override {} - virtual bool match( T const& expr ) const { + virtual bool match( T const& expr ) const override { return m_expected == expr; } - virtual std::string toString() const { + virtual std::string toString() const override { return "== " + Catch::toString(m_expected); } diff --git a/src/tests/test_mceliece.cpp b/src/tests/test_mceliece.cpp index 616f64be9..29f11edd7 100644 --- a/src/tests/test_mceliece.cpp +++ b/src/tests/test_mceliece.cpp @@ -152,7 +152,6 @@ size_t test_mceliece_raw(const McEliece_PrivateKey& sk, for(size_t j = 0; j < err_pos.size(); j++) std::printf("%u, ", err_pos[j]); printf("\n"); return 1; - continue; } } |