//===- llvm/unittest/Support/EditDistanceTest.cpp - Edit distance tests ---===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/ADT/StringRef.h" #include "llvm/ADT/edit_distance.h" #include "gtest/gtest.h" #include <cstdlib> usingnamespacellvm; namespace { struct Result { … }; } // namespace static Result editDistanceAndMaps(StringRef A, StringRef B, unsigned MaxEditDistance = 0) { … } TEST(EditDistance, VerifyShortCircuit) { … }