Skip to content

Commit

Permalink
Removed vscode-file, updated .gitignore. Normalized tabs in test1.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
GPMueller committed Dec 31, 2017
1 parent 739e8a0 commit 026cd73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

6 changes: 3 additions & 3 deletions test/test1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ TEST_CASE( "algorithm", "[algorithm]" )

TEST_CASE( "reduction", "[reduction]" )
{
auto myVec = backends::vector<float>{1, 2, 3, 4};
float sum = backends::sum(myVec);
float mean = backends::mean(myVec);
auto myVec = backends::vector<float>{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));
}

0 comments on commit 026cd73

Please sign in to comment.