Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skramm committed Dec 16, 2023
1 parent 5c9a38a commit 4c6d68c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,9 @@ BUILD/no_build/no_build_%.cpp: misc/no_build/no_build_%.cxx

# compile, and return 0 if compilation fails (which is supposed to happen)
BUILD/no_build/no_build_%.o: BUILD/no_build/no_build_%.cpp
@echo "Checking build failure of $<"
@echo "Checking build failure of $<" >>BUILD/no_build.stdout
@echo -e "-----------------------------\nChecking build failure of $(notdir $<)\n" >>BUILD/no_build.stderr
! $(CXX) -o $@ -c $< 1>>BUILD/no_build.stdout 2>>BUILD/no_build.stderr
@echo "howdy"
if [ -e $@ ]; then echo "exist"; fi
@! $(CXX) -o $@ -c $< 1>>BUILD/no_build.stdout 2>>BUILD/no_build.stderr

#=================================================================
# SHOWCASE: generates gif images of some situations
Expand Down
6 changes: 3 additions & 3 deletions misc/homog2d_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2671,7 +2671,7 @@ TEST_CASE( "Translate", "[trans]")

translate( pt, std::make_pair(2,3) );
CHECK( pt == Point2d(6,8) );
c.translate( std::make_pair(-2,-3) );
pt.translate( std::make_pair(-2,-3) );
CHECK( pt == Point2d(4,5) );
}

Expand All @@ -2684,10 +2684,10 @@ TEST_CASE( "MoveTo", "[moveto]")
moveTo(c,8,9);
CHECK( c.center() == Point2d(8,9) );

Point2d_<NUMTYPE> pt1( 1,1);
Point2d_<NUMTYPE> pt1(1,1);
moveTo(c,pt1);
CHECK( c.center() == pt1 );
Point2d_<NUMTYPE> pt2( 1,1);
Point2d_<NUMTYPE> pt2(3,3);
c.moveTo(pt2);
CHECK( c.center() == pt2 );

Expand Down

0 comments on commit 4c6d68c

Please sign in to comment.