From 026cd73e5271344fd3cc2de53d84fb85ed2164a5 Mon Sep 17 00:00:00 2001 From: Gideon Date: Sun, 31 Dec 2017 18:04:04 +0100 Subject: [PATCH] Removed vscode-file, updated .gitignore. Normalized tabs in test1.cpp. --- .gitignore | 9 +++++++++ .vscode/settings.json | 6 ------ test/test1.cpp | 6 +++--- 3 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 2d9367e..e74c3c2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,15 @@ build/* # Created by https://www.gitignore.io/api/c++,cmake,cuda,windows,osx,linux +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +.history + + ### C++ ### # Prerequisites *.d diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 45cc7a7..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files.associations": { - "*.cu": "cpp", - "xutility": "cpp" - } -} \ No newline at end of file diff --git a/test/test1.cpp b/test/test1.cpp index c4e0a36..a5de99c 100644 --- a/test/test1.cpp +++ b/test/test1.cpp @@ -13,9 +13,9 @@ TEST_CASE( "algorithm", "[algorithm]" ) TEST_CASE( "reduction", "[reduction]" ) { - auto myVec = backends::vector{1, 2, 3, 4}; - float sum = backends::sum(myVec); - float mean = backends::mean(myVec); + auto myVec = backends::vector{1, 2, 3, 4}; + float sum = backends::sum(myVec); + float mean = backends::mean(myVec); REQUIRE( sum == 10 ); REQUIRE( mean == Approx(2.5f).epsilon(0.01)); } \ No newline at end of file