Enable formatting (#188)
This commit is contained in:
17
tests/unit/Feature/Formatting.cpp
Normal file
17
tests/unit/Feature/Formatting.cpp
Normal 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
|
||||
Reference in New Issue
Block a user