aboutsummaryrefslogtreecommitdiff
path: root/tests/TensorLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TensorLibrary.cpp')
-rw-r--r--tests/TensorLibrary.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/TensorLibrary.cpp b/tests/TensorLibrary.cpp
index 21bb4ecd73..479c3e5f04 100644
--- a/tests/TensorLibrary.cpp
+++ b/tests/TensorLibrary.cpp
@@ -186,13 +186,15 @@ RawTensor load_ppm(const std::string &path)
}
} // namespace
-TensorLibrary::TensorLibrary(std::string path)
- : _library_path(std::move(path)), _seed{ std::random_device()() }
+TensorLibrary::TensorLibrary(std::string path) //NOLINT
+ : _library_path(std::move(path)),
+ _seed{ std::random_device()() }
{
}
-TensorLibrary::TensorLibrary(std::string path, std::random_device::result_type seed)
- : _library_path(std::move(path)), _seed{ seed }
+TensorLibrary::TensorLibrary(std::string path, std::random_device::result_type seed) //NOLINT
+ : _library_path(std::move(path)),
+ _seed{ seed }
{
}
@@ -342,9 +344,9 @@ RawTensor TensorLibrary::load_image(const std::string &name) const
{
#ifdef _WIN32
const std::string image_path = ("\\images\\");
-#else
+#else /* _WIN32 */
const std::string image_path = ("/images/");
-#endif
+#endif /* _WIN32 */
const std::string path = _library_path + image_path + name;
const std::string extension = path.substr(path.find_last_of('.') + 1);