Enable formatting (#188)

This commit is contained in:
ykiko
2025-08-23 22:52:27 +08:00
committed by GitHub
parent 52e45e1f26
commit 5f8a577e26
10 changed files with 161 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
#include "Test/Test.h"
#include "Feature/Formatting.h"
namespace clice::testing {
namespace {
suite<"Formatting"> suite = [] {
test("Simple") = [] {
auto edits = feature::document_format("main.cpp", "int main() { return 0; }", std::nullopt);
expect(ne(edits.size(), 0));
};
};
} // namespace
} // namespace clice::testing