Skip to content

Commit

Permalink
Fix common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsy committed Apr 14, 2015
1 parent 52fb564 commit 7586310
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Renderer/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef RAINY_COMMON_H_
#define RAINY_COMMON_H_

#include <cstdlib>
#include <cmath>
#include <iostream>

Expand Down
4 changes: 4 additions & 0 deletions test/test_Vector3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ TEST(Vector3Test, AlgebraTest) {
EXPECT_EQ(1.0, w.x());
EXPECT_EQ(4.0, w.y());
EXPECT_EQ(9.0, w.z());

double nrm = u.norm();
EXPECT_EQ(sqrt(14.0), nrm);

}

int main(int argc, char **argv) {
Expand Down

0 comments on commit 7586310

Please sign in to comment.