diff --git a/ai-ml/mlight/NumericTest.cpp b/ai-ml/mlight/NumericTest.cpp index f8227dd..635d2da 100644 --- a/ai-ml/mlight/NumericTest.cpp +++ b/ai-ml/mlight/NumericTest.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" TEST(Foo, Bar) { diff --git a/ai-ml/mlight/PrototypesTest.cpp b/ai-ml/mlight/PrototypesTest.cpp index d47ea30..c6e4b07 100644 --- a/ai-ml/mlight/PrototypesTest.cpp +++ b/ai-ml/mlight/PrototypesTest.cpp @@ -1,5 +1,4 @@ -#include "../header.h" - +#include "../cpp/header.h" using namespace mlight; diff --git a/classic-algorithms/Bipartite-matching.cc b/classic-algorithms/Bipartite-matching.cc index f9c8d77..ff3841c 100644 --- a/classic-algorithms/Bipartite-matching.cc +++ b/classic-algorithms/Bipartite-matching.cc @@ -1,5 +1,4 @@ -#include "../header.h" - +#include "../cpp/header.h" using DEL = graph::DirectEdgeList<>; diff --git a/classic-algorithms/Dijkstra.cc b/classic-algorithms/Dijkstra.cc new file mode 100644 index 0000000..8ce72c6 --- /dev/null +++ b/classic-algorithms/Dijkstra.cc @@ -0,0 +1,23 @@ + +#include "../cpp/header.h" + +class Dijkstra { + public: +}; + +class DijkstraTest : public testing::Test { + protected: + void SetUp() override {} + void TearDown() override {} +}; + +TEST_F(DijkstraTest, Bar) { +} + +int main(int argc, char* argv[]) { + testing::InitGoogleTest(&argc, argv); + gflags::ParseCommandLineFlags(&argc, &argv, true); + google::InitGoogleLogging(argv[0]); + return RUN_ALL_TESTS(); +} + diff --git a/classic-algorithms/FloydWarshall.cc b/classic-algorithms/FloydWarshall.cc index 544a666..6a5e325 100644 --- a/classic-algorithms/FloydWarshall.cc +++ b/classic-algorithms/FloydWarshall.cc @@ -1,5 +1,5 @@ -#include "../header.h" +#include "../cpp/header.h" class FloydWarshall { public: diff --git a/classic-algorithms/LCS.cc b/classic-algorithms/LCS.cc index ed5aa2d..3bb6931 100644 --- a/classic-algorithms/LCS.cc +++ b/classic-algorithms/LCS.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" /* diff --git a/classic-algorithms/Strongly-connected-components.cc b/classic-algorithms/Strongly-connected-components.cc index 081cdcd..638cd8e 100644 --- a/classic-algorithms/Strongly-connected-components.cc +++ b/classic-algorithms/Strongly-connected-components.cc @@ -1,5 +1,6 @@ -#include "../header.h" +#include "../cpp/header.h" +#include "../data-structures/Graph.h" class SCC : public testing::Test { protected: diff --git a/cpp/break-private-type.cpp b/cpp/break-private-type.cpp index bce3ac5..51abadf 100644 --- a/cpp/break-private-type.cpp +++ b/cpp/break-private-type.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class Foo { diff --git a/cpp/capture-by-value-trap.cpp b/cpp/capture-by-value-trap.cpp index e404eb2..34fbb6c 100644 --- a/cpp/capture-by-value-trap.cpp +++ b/cpp/capture-by-value-trap.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class CaptureByValueTrap : public testing::Test { diff --git a/cpp/constexpr.cc b/cpp/constexpr.cc index 3375f26..6116fb7 100644 --- a/cpp/constexpr.cc +++ b/cpp/constexpr.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" using namespace std; #define debug(x) cerr<<#x<<"=\""< diff --git a/cpp/exceptions.cpp b/cpp/exceptions.cpp index 94276d6..8422f26 100644 --- a/cpp/exceptions.cpp +++ b/cpp/exceptions.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class FooTest : public testing::Test { diff --git a/cpp/get-class-name.cpp b/cpp/get-class-name.cpp index fd882fb..5e7e72e 100644 --- a/cpp/get-class-name.cpp +++ b/cpp/get-class-name.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class ClassNameTrait { diff --git a/header.h b/cpp/header.h similarity index 100% rename from header.h rename to cpp/header.h diff --git a/cpp/initializer-list.cc b/cpp/initializer-list.cc index d0f0edd..b6c0f1a 100644 --- a/cpp/initializer-list.cc +++ b/cpp/initializer-list.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" using namespace std; diff --git a/cpp/intrusive-and-nonintrusive-lists.cc b/cpp/intrusive-and-nonintrusive-lists.cc index 3b83218..821573b 100644 --- a/cpp/intrusive-and-nonintrusive-lists.cc +++ b/cpp/intrusive-and-nonintrusive-lists.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" using namespace std; diff --git a/cpp/is_invocable.cpp b/cpp/is_invocable.cpp index 88d7906..f7dfcd8 100644 --- a/cpp/is_invocable.cpp +++ b/cpp/is_invocable.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class FooTest : public testing::Test { diff --git a/cpp/lambda-and-unique_ptr.cpp b/cpp/lambda-and-unique_ptr.cpp index f1918d6..a7010eb 100644 --- a/cpp/lambda-and-unique_ptr.cpp +++ b/cpp/lambda-and-unique_ptr.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" void foo(std::function&& f) { diff --git a/cpp/lambda-capture.cpp b/cpp/lambda-capture.cpp index 03f3057..3bc3620 100644 --- a/cpp/lambda-capture.cpp +++ b/cpp/lambda-capture.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" #include "dummy-classes.h" TEST(Foo, Bar) { diff --git a/cpp/lambda-dtor.cpp b/cpp/lambda-dtor.cpp index 2348628..9378595 100644 --- a/cpp/lambda-dtor.cpp +++ b/cpp/lambda-dtor.cpp @@ -1,5 +1,5 @@ -#include "../header.h" +#include "../cpp/header.h" void bar(std::function&& fn) { diff --git a/cpp/md-subscript.cc b/cpp/md-subscript.cc index a25169b..a94c1ba 100644 --- a/cpp/md-subscript.cc +++ b/cpp/md-subscript.cc @@ -1,5 +1,5 @@ -#include "../header.h" +#include "../cpp/header.h" REQUIURE_CPP_STD(202100L); diff --git a/cpp/meta-template-programming.cc b/cpp/meta-template-programming.cc index 87baf5a..2851d9b 100644 --- a/cpp/meta-template-programming.cc +++ b/cpp/meta-template-programming.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" using namespace std; diff --git a/cpp/move-copy-mess.cpp b/cpp/move-copy-mess.cpp index 8767cb2..c853d2a 100644 --- a/cpp/move-copy-mess.cpp +++ b/cpp/move-copy-mess.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" #include "dummy-classes.h" TEST(Foo, Bar) { diff --git a/cpp/new_syntax.cpp b/cpp/new_syntax.cpp index a52ed66..eb68da8 100644 --- a/cpp/new_syntax.cpp +++ b/cpp/new_syntax.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" using namespace std; diff --git a/cpp/power-operator-star-star.cc b/cpp/power-operator-star-star.cc index 0826480..9004a0e 100644 --- a/cpp/power-operator-star-star.cc +++ b/cpp/power-operator-star-star.cc @@ -1,5 +1,5 @@ // Overload of '*' to form a new operator '**' to implement rising to power. -#include "../header.h" +#include "../cpp/header.h" using namespace std; #define debug(x) cerr<<#x<<"=\""< class _DisplayType; diff --git a/cpp/scm-challenge-2017/constexpr-magic.cpp b/cpp/scm-challenge-2017/constexpr-magic.cpp index bbea6af..f6dfe0a 100644 --- a/cpp/scm-challenge-2017/constexpr-magic.cpp +++ b/cpp/scm-challenge-2017/constexpr-magic.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" constexpr const auto &lorem_ipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu lorem sed odio varius vestibulum et eu ante. Quisque rutrum, sem vitae accumsan finibus, enim elit mattis urna, gravida rhoncus erat sem quis lectus. Donec ultrices pretium arcu, rhoncus facilisis eros lobortis sit amet. Quisque vitae lorem at ante ultricies pulvinar. Sed suscipit faucibus tempus. Donec ut sem felis. Ut porttitor libero justo, ultrices egestas purus cursus cursus. Fusce et sapien felis. Phasellus ut ornare arcu. Vestibulum eget finibus dui. Sed quam sem, efficitur vitae risus egestas, vehicula vestibulum est. Nulla rutrum tempus mollis. Nunc a elementum felis"; diff --git a/cpp/scm-challenge-2017/operator-overload.cpp b/cpp/scm-challenge-2017/operator-overload.cpp index eba0497..ac8ea6b 100644 --- a/cpp/scm-challenge-2017/operator-overload.cpp +++ b/cpp/scm-challenge-2017/operator-overload.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" #include diff --git a/cpp/serialized_string_set.cc b/cpp/serialized_string_set.cc index 07bb048..42949e9 100644 --- a/cpp/serialized_string_set.cc +++ b/cpp/serialized_string_set.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class SerializedStringSet { diff --git a/cpp/shared-ptr.cpp b/cpp/shared-ptr.cpp index d6a507e..38831af 100644 --- a/cpp/shared-ptr.cpp +++ b/cpp/shared-ptr.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" struct Foo : public std::enable_shared_from_this { }; diff --git a/cpp/small-string-opt.cpp b/cpp/small-string-opt.cpp index d0709cf..4f851c7 100644 --- a/cpp/small-string-opt.cpp +++ b/cpp/small-string-opt.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" // replace operator new and delete to log allocations void* operator new(std::size_t n) { diff --git a/cpp/static-variable-in-scope.cpp b/cpp/static-variable-in-scope.cpp index ddcc984..dc7b85e 100644 --- a/cpp/static-variable-in-scope.cpp +++ b/cpp/static-variable-in-scope.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" #include "dummy-classes.h" class FooTest : public testing::Test { diff --git a/cpp/std_placeholder.cpp b/cpp/std_placeholder.cpp index 3bb1905..5b6cfbe 100644 --- a/cpp/std_placeholder.cpp +++ b/cpp/std_placeholder.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" diff --git a/cpp/string_view.cc b/cpp/string_view.cc index 97c93e4..617c3c6 100644 --- a/cpp/string_view.cc +++ b/cpp/string_view.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" TEST(StringView, Basic) { diff --git a/cpp/template-constexpr.cpp b/cpp/template-constexpr.cpp index a2a5c48..eab6944 100644 --- a/cpp/template-constexpr.cpp +++ b/cpp/template-constexpr.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" template diff --git a/cpp/template-subclass.cpp b/cpp/template-subclass.cpp index becbd23..5a9a0f8 100644 --- a/cpp/template-subclass.cpp +++ b/cpp/template-subclass.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" // using namespace std; #define debug(x) cerr<<#x<<"=\""< void _displayType(T&& t); diff --git a/cpp/test-istream.cpp b/cpp/test-istream.cpp index e8be627..01253fa 100644 --- a/cpp/test-istream.cpp +++ b/cpp/test-istream.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" TEST(Foo, Bar) { diff --git a/cpp/tuples.cpp b/cpp/tuples.cpp index b5f09ca..f12a3fc 100644 --- a/cpp/tuples.cpp +++ b/cpp/tuples.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" using namespace std; #define debug(x) cerr<<#x<<"=\""< diff --git a/data-structures/segment-tree.cc b/data-structures/segment-tree.cc index a3922a2..39f5d5d 100644 --- a/data-structures/segment-tree.cc +++ b/data-structures/segment-tree.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" size_t ceilingTwo(size_t n) { diff --git a/distributed_and_concurrency/Dining_philosophers_problem.cc b/distributed_and_concurrency/Dining_philosophers_problem.cc index 00f031c..c908a8d 100644 --- a/distributed_and_concurrency/Dining_philosophers_problem.cc +++ b/distributed_and_concurrency/Dining_philosophers_problem.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" diff --git a/distributed_and_concurrency/atomic-mem-order.cpp b/distributed_and_concurrency/atomic-mem-order.cpp index f58129b..2a47e1b 100644 --- a/distributed_and_concurrency/atomic-mem-order.cpp +++ b/distributed_and_concurrency/atomic-mem-order.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" void relaxedMagic1() { std::atomic x(0), y(0); diff --git a/distributed_and_concurrency/reduce.cc b/distributed_and_concurrency/reduce.cc index e1a20fd..59f2969 100644 --- a/distributed_and_concurrency/reduce.cc +++ b/distributed_and_concurrency/reduce.cc @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" #include "message_queue.h" diff --git a/distributed_and_concurrency/simple-concurrency-control.cc b/distributed_and_concurrency/simple-concurrency-control.cc index 18e5bd5..a5085dd 100644 --- a/distributed_and_concurrency/simple-concurrency-control.cc +++ b/distributed_and_concurrency/simple-concurrency-control.cc @@ -1,5 +1,4 @@ -#include "../header.h" - +#include "../cpp/header.h" // https://en.cppreference.com/w/cpp/thread #include diff --git a/dotfiles/template.cpp b/dotfiles/template.cpp index b21f126..24853ea 100644 --- a/dotfiles/template.cpp +++ b/dotfiles/template.cpp @@ -1,4 +1,4 @@ -#include "../header.h" +#include "../cpp/header.h" class FooTest : public testing::Test {