[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6030] Fix a problem with 'USE_SO_ATTRIBUTES=1'
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6030] Fix a problem with 'USE_SO_ATTRIBUTES=1' |
Date: |
Fri, 07 Nov 2014 01:22:21 +0000 |
Revision: 6030
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6030
Author: chicares
Date: 2014-11-07 01:22:20 +0000 (Fri, 07 Nov 2014)
Log Message:
-----------
Fix a problem with 'USE_SO_ATTRIBUTES=1'
Modified Paths:
--------------
lmi/trunk/ChangeLog
lmi/trunk/wx_test_default_input.cpp
Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2014-11-07 00:56:26 UTC (rev 6029)
+++ lmi/trunk/ChangeLog 2014-11-07 01:22:20 UTC (rev 6030)
@@ -34611,3 +34611,9 @@
Improve a variable name. See:
http://lists.nongnu.org/archive/html/lmi/2014-10/msg00118.html
+20141107T0122Z <address@hidden> [516]
+
+ wx_test_default_input.cpp
+Fix a problem with 'USE_SO_ATTRIBUTES=1'. See:
+ http://lists.nongnu.org/archive/html/lmi/2014-10/msg00118.html
+
Modified: lmi/trunk/wx_test_default_input.cpp
===================================================================
--- lmi/trunk/wx_test_default_input.cpp 2014-11-07 00:56:26 UTC (rev 6029)
+++ lmi/trunk/wx_test_default_input.cpp 2014-11-07 01:22:20 UTC (rev 6030)
@@ -34,16 +34,20 @@
#include <wx/log.h>
+#include <sstream>
+
LMI_WX_TEST_CASE(default_input)
{
calendar_date const today;
calendar_date const first_of_month(today.year(), today.month(), 1);
Input const& cell = default_cell();
- calendar_date const effective_date =
exact_cast<tnr_date>(cell["EffectiveDate"])->value();
+ calendar_date effective_date;
+ std::istringstream is(cell["EffectiveDate"].str());
+ LMI_ASSERT(is >> effective_date);
LMI_ASSERT_EQUAL(effective_date, first_of_month);
- std::string const general_account_rate =
exact_cast<numeric_sequence>(cell["GeneralAccountRate"])->value();
+ std::string const general_account_rate = cell["GeneralAccountRate"].str();
LMI_ASSERT(!general_account_rate.empty());
wxLogMessage("GeneralAccountRate is \"%s\"", general_account_rate.c_str());
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6030] Fix a problem with 'USE_SO_ATTRIBUTES=1',
Greg Chicares <=