Учебный проект с реализацией классических алгоритмов сортировки на C++17 и юнит-тестами на GoogleTest.
- 🫧 Bubble Sort
- 🔍 Selection Sort
- 🧩 Insertion Sort
- ⚡ std::sort
- 🧪 Юнит-тесты на GoogleTest
- 🛠 Сборка через CMake
sudo apt update
sudo apt install g++ cmake make libgtest-devgit clone https://github.com/USERNAME/sorting-algorithms.git
cd sorting-algorithms
mkdir build && cd build
cmake -DBUILD_TESTS=ON ..
make -j$(nproc)# Основная программа
./build/sorting
# Тесты
cd build && ctest --output-on-failure.
├── CMakeLists.txt
├── include/
│ ├── print.h
│ └── sorting.h
├── src/
│ ├── memoris.cpp
│ ├── print.cpp
│ └── sorting.cpp
└── tests/
└── test_sorting.cpp
MIT — см. LICENSE.