aboutsummaryrefslogtreecommitdiff
path: root/tests/test_unification.cc
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-04 05:21:26 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-04 05:21:26 +0800
commitbf4f464cec8b6515d9e5131d43847ef9b2fd21d1 (patch)
tree8cff611e6dab7473c3bb601e58658fa44f0fd86f /tests/test_unification.cc
parent6fac8eb886f1e60a5a075c48a5f7648bb537f74e (diff)
downloadratp-bf4f464cec8b6515d9e5131d43847ef9b2fd21d1.tar.gz
ratp-bf4f464cec8b6515d9e5131d43847ef9b2fd21d1.tar.xz
style: reformat codebase with consistent indentation
Diffstat (limited to 'tests/test_unification.cc')
-rw-r--r--tests/test_unification.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_unification.cc b/tests/test_unification.cc
index 3ee6f00..516058a 100644
--- a/tests/test_unification.cc
+++ b/tests/test_unification.cc
@@ -16,14 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-#include <gtest/gtest.h>
-
#include "atp/core/symbol_table.h"
#include "atp/core/term_bank.h"
#include "atp/core/types.h"
#include "atp/infer/substitution.h"
#include "atp/infer/unification.h"
+#include <gtest/gtest.h>
+
namespace atp {
namespace {
@@ -348,8 +348,7 @@ TEST_F(UnificationTest, UnifyThenApply) {
EXPECT_EQ(applySubstitution(subst, lhs, bank), P(a, f(b)));
EXPECT_EQ(applySubstitution(subst, rhs, bank), P(a, f(b)));
// Both sides should produce the same term after applying the MGU
- EXPECT_EQ(applySubstitution(subst, lhs, bank),
- applySubstitution(subst, rhs, bank));
+ EXPECT_EQ(applySubstitution(subst, lhs, bank), applySubstitution(subst, rhs, bank));
}
} // namespace