From 63a88c873f3643aad9208488765dc53618edd40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Thu, 22 Apr 2021 20:53:30 +0200 Subject: move all tests to top-level tests/ directory --- tests/indent/cpp/access.cpp | 6 ++++++ tests/indent/cpp/class.cpp | 7 +++++++ tests/indent/cpp/stream.cpp | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 tests/indent/cpp/access.cpp create mode 100644 tests/indent/cpp/class.cpp create mode 100644 tests/indent/cpp/stream.cpp (limited to 'tests/indent/cpp') diff --git a/tests/indent/cpp/access.cpp b/tests/indent/cpp/access.cpp new file mode 100644 index 00000000..abdb846c --- /dev/null +++ b/tests/indent/cpp/access.cpp @@ -0,0 +1,6 @@ +class Foo { +public: + int x; +private: + int y; +}; diff --git a/tests/indent/cpp/class.cpp b/tests/indent/cpp/class.cpp new file mode 100644 index 00000000..cd838219 --- /dev/null +++ b/tests/indent/cpp/class.cpp @@ -0,0 +1,7 @@ +class Foo { + int x; + class Bar { + int y; + }; + Bar z; +}; diff --git a/tests/indent/cpp/stream.cpp b/tests/indent/cpp/stream.cpp new file mode 100644 index 00000000..a619dfa6 --- /dev/null +++ b/tests/indent/cpp/stream.cpp @@ -0,0 +1,7 @@ +#include + +void foo(int x) { + std::cout << x + << x + 1 + << x + 2; +} -- cgit v1.2.3