diff --git a/unit_tests/algorithm.cpp b/unit_tests/algorithm.cpp
index cfebf5daa9689305be655977ed4ade6b32fd3f3b..0925bdc8e2a1704fa0281967b2d3efce53a25fbd 100644
--- a/unit_tests/algorithm.cpp
+++ b/unit_tests/algorithm.cpp
@@ -147,13 +147,13 @@ struct rational
 	{ return num * other.den == other.num * den; }
 
 	constexpr
-	rational operator+() { return *this; } const
-	constexpr
+	rational operator+() const { return *this; }
 
+	constexpr
 	rational operator*(const rational& other) const
 	{ return {num*other.num, den*other.den}; }
-	constexpr
 
+	constexpr
 	void normalize()
 	{
 		auto gcd = std::gcd(num, den);