lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5094] Demonstrate a latent problem


From: Greg Chicares
Subject: [lmi-commits] [5094] Demonstrate a latent problem
Date: Fri, 06 Aug 2010 13:14:31 +0000

Revision: 5094
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5094
Author:   chicares
Date:     2010-08-06 13:14:31 +0000 (Fri, 06 Aug 2010)
Log Message:
-----------
Demonstrate a latent problem

Modified Paths:
--------------
    lmi/trunk/input_test.cpp

Modified: lmi/trunk/input_test.cpp
===================================================================
--- lmi/trunk/input_test.cpp    2010-08-06 13:12:35 UTC (rev 5093)
+++ lmi/trunk/input_test.cpp    2010-08-06 13:14:31 UTC (rev 5094)
@@ -190,6 +190,14 @@
     db.Query(v, DB_SnflQ, index);
     BOOST_TEST_EQUAL(55, db.length());
     BOOST_TEST_EQUAL(71, v.size());
+
+    // Test presumptive bounds on issue-age index.
+std::cout << v.size() << "...should be rejected, but isn't.\n";
+    index.issue_age(-1);
+    db.Query(v, DB_SnflQ, index);
+std::cout << v.size() << "...should be rejected, and is.\n";
+    index.issue_age(100);
+    db.Query(v, DB_SnflQ, index);
 }
 
 void input_test::test_input_class()




reply via email to

[Prev in Thread] Current Thread [Next in Thread]