Permalink
Browse files

sanity check test

  • Loading branch information...
erh committed Feb 17, 2011
1 parent 07dfc02 commit 77f2a06c6d28fc96e8f5548a093c1afa3df19ea2
Showing with 6 additions and 0 deletions.
  1. +6 −0 dbtests/threadedtests.cpp
@@ -155,6 +155,12 @@ namespace ThreadedTests {
ASSERT_EQUALS(2u, u--);
ASSERT_EQUALS(0u, --u);
ASSERT_EQUALS(0u, u);
+
+ u++;
+ ASSERT( u > 0 );
+
+ u--;
+ ASSERT( ! ( u > 0 ) );
}
};

0 comments on commit 77f2a06

Please sign in to comment.