[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5092] Demonstrate a latent problem
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5092] Demonstrate a latent problem |
Date: |
Fri, 06 Aug 2010 09:45:47 +0000 |
Revision: 5092
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5092
Author: chicares
Date: 2010-08-06 09:45:47 +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 09:43:45 UTC (rev 5091)
+++ lmi/trunk/input_test.cpp 2010-08-06 09:45:47 UTC (rev 5092)
@@ -173,6 +173,23 @@
,"Assertion '1 == v.extent()' failed."
);
DBDictionary::instance().datum("MaturityAge") = maturity;
+
+ // A nondefault lookup index with a different issue age changes
+ // the length of a queried vector.
+ int dims_snflq[e_number_of_axes] = {1, 1, 1, e_max_dim_issue_age, 1, 1, 1};
+ DBDictionary::instance().datum("SnflQ") = database_entity
+ (DB_SnflQ
+ ,e_number_of_axes
+ ,dims_snflq
+ ,tax
+ );
+ db.Query(v, DB_SnflQ);
+ BOOST_TEST_EQUAL(55, db.length());
+ BOOST_TEST_EQUAL(55, v.size());
+ database_index index = db.index().issue_age(29);
+ db.Query(v, DB_SnflQ, index);
+ BOOST_TEST_EQUAL(55, db.length());
+ BOOST_TEST_EQUAL(71, v.size());
}
void input_test::test_input_class()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5092] Demonstrate a latent problem,
Greg Chicares <=