Jeff Garland
e26fd2ed98
pull develop to master for boost 1.72 ( #117 )
...
* Synchronize each miscrosec test to the next second (#109 )
* Synchronize each miscrosec test to the next second
The aim is to avoid false positives in test_microsec when the seconds,
minutes or hours change during time read between the second_clock and
the microsec_clock.
* Improved readability of the microcec_time_clock test
* Improve performance of adding and subtracting time durations from a ptime. (#99 )
Modifying ptime objects by adding and subtracting time durations was
inefficient because it extracted the date and time of day and then
re-constructed a ptime using the date and modified time of day.
This can be avoided by using the existing time_system utilities which
perform the operation by adjusting the number of ticks.
Performance is improved by a factor of 48 on my system.
* Update CI Scripts
* Add time_duration helper functions: (#113 )
1. is_positive()
- Return boolean value to indicate whether or not time duration is
positive.
2. is_zero()
- Return boolean value to indicate whether or not time duration is
zero.
3. abs()
- Return a time_duration which is the absolute value of time
duration.
Added documentation for these helper functions and improved existing
documentation to indicate constness, return values or static
functions.
* Cease dependence on MPL (#115 )
2019-12-03 17:06:28 -07:00
James E. King III
3f092da750
trac-13159, trac-12630: fix maximum year to 9999
2018-01-24 09:44:04 -05:00
James E. King III
f35bbbe906
trac-3606: fix remaining msvc /W4 complaints (msvc-10.0 and up)
2018-01-17 09:22:22 -05:00
James E. King III
18b6ca8160
trac-11142: fix boost::date_time::period_parser::delimiter_strings and add a unit test for it
...
also added project declarations to jamfiles, added a top level jamfile, and fixed the xmldoc jamfile
also fixed a silent failure y2038 issue in localtime handling and fixed a timezone database parse issue
2018-01-16 12:46:45 -05:00
Peter Dimov
53da52ee05
Bracket archive use to fix xml serialization test failures
2017-11-13 21:44:04 +02:00
Andrey Semashev
266e6cc8e1
Silence MSVC warnings about unused exception variables in tests.
2017-08-28 20:06:24 +03:00
Andrey Semashev
6b3452954e
Silenced clang warning about unused variable.
2017-08-11 16:10:00 +03:00
Andrey Semashev
82f61328b2
Fixed "invalid character" warnings from clang.
...
The character was indeed not a valid UTF-8 character. Presumably, it is a
valid character in some national encoding, but Unicode is ubiquitous nowdays
and the compiler is not able to know the encoding anyway. Thus the commit
converts the character to a hex-escaped UTF-8 representation of character
U+00FC ('ü').
2017-08-10 19:01:45 +03:00
Andrey Semashev
d972d0cd69
Expand range of values in years overflow test to ensure the whole documented range is allowed.
2017-08-08 19:32:08 +03:00
Andrey Semashev
6af6215e9e
Fixed integer overflow when subtracting many years to a gregorian date.
...
Also added a testcase to detect the overflow.
2017-08-08 17:42:51 +03:00
Andrey Semashev
729af79cc5
Fixed integer overflow when adding many years to a gregorian date.
...
Also added a testcase to detect the overflow.
2017-08-08 17:23:46 +03:00
Marshall Clow
ef81faff5f
Added test for bug #5041 - %y in single digit year
...
Ahmed Charles: Tests pass with MSVC 2013.
2014-03-13 15:08:38 -07:00
Marshall Clow
072b4e1b61
Fix several 'iterating past the end' bugs in Boost.DateTime; Refs #9216
...
[SVN r86230]
2013-10-10 15:43:31 +00:00
Andrey Semashev
29c0f85c14
Fixed compilation with MSVC.
...
[SVN r80889]
2012-10-06 17:46:27 +00:00
Marshall Clow
318a6ce7ea
Fix typo in test case; Refs #6513
...
[SVN r80709]
2012-09-26 16:44:40 +00:00
Marshall Clow
e6515ce73c
Refs #3633 ; will close when merged to release
...
[SVN r79228]
2012-07-02 15:14:03 +00:00
Jeff Garland
c2861c6305
minor updates to suppress g++4.6 warnings
...
[SVN r79211]
2012-07-01 16:52:34 +00:00
Andrey Semashev
e229437b9e
Refs #3308 . Fixed calculation of difference between dates on 64 bit platforms.
...
[SVN r56372]
2009-09-24 20:21:37 +00:00
Andrey Semashev
8e9f05161d
Improved diagnostics in case of test failure.
...
[SVN r53528]
2009-06-01 09:02:43 +00:00
Andrey Semashev
4a238482e8
testfrmwk.hpp moved to the tests directory. It was not a part of the library public interface and should not be seen by users.
...
[SVN r49932]
2008-11-25 20:36:52 +00:00
Andrey Semashev
462d59604b
Fixed a possible crash in gregorian::special_value_from_string if the string did not represent a valid special value. The find_match function now accepts the size of lookup tables rater than the maximum index.
...
[SVN r49875]
2008-11-22 13:40:54 +00:00
Andrey Semashev
ca3bb2dfe8
The test now operates on strings rather than files. This was made in order to reduce possible influence from the file system and improve diagnostics in case of failure.
...
[SVN r49613]
2008-11-06 16:14:02 +00:00
Andrey Semashev
b59c3dab04
Fixed exception handling that led to exception type slicing in some cases and simply inefficient code in others.
...
[SVN r49610]
2008-11-06 15:43:07 +00:00
Daniel James
9b5d99078e
Fix broken copyright urls. Fixes #1573 .
...
[SVN r43422]
2008-02-27 18:51:14 +00:00
Jeff Garland
0dadfe419a
add some test diagnostics to get more information about regression failures
...
[SVN r34283]
2006-06-12 14:46:54 +00:00
Jeff Garland
2af5cd1361
add an expand function to the period
...
[SVN r33478]
2006-03-26 20:12:41 +00:00
Jeff Garland
e8ba437845
Add tests to fix negative durations wrapping problem (wrapping int fix)
...
[SVN r30822]
2005-09-05 22:07:05 +00:00
Jeff Garland
09ff47960f
iso tokenizer fix test updates - causes exception when missing digits - hence bad format
...
[SVN r30821]
2005-09-05 21:34:51 +00:00
Jeff Garland
73ddcd7ead
add tests for day of month parsing problem
...
[SVN r30817]
2005-09-05 21:10:09 +00:00
Jeff Garland
bc754d907c
add tests for fix to input parsing. Tests for bug that would cause an extra character to be consumed in the stream when parsing special value cases. In particular something like a date period like [2005-Jun-10/not-a-date-time] would fail to parse correctly even though this can be constructed and output just fine
...
[SVN r29854]
2005-07-01 03:00:34 +00:00
Jeff Garland
54e7c78df6
fix bug with exception handling in new i/o code -- only throw exceptions if stream bits set correctly
...
[SVN r29823]
2005-06-28 13:12:24 +00:00
Jeff Garland
7472b1e047
fixes for special value serialization bug
...
[SVN r29712]
2005-06-21 03:35:34 +00:00
Jeff Garland
bb21d778a0
updates to test for %% bugfix -- removal of references to ptime_facet in tests
...
[SVN r29622]
2005-06-16 13:23:38 +00:00
Jeff Garland
43839c4d19
Changes to tests for i/o fixes -- close some holes. Also rename of custom timezone
...
[SVN r28629]
2005-05-03 14:27:05 +00:00
Jeff Garland
d13c4ec9f3
updates to fix serialization regression caused by changes to the serialization lib -- const value is required when archiving
...
[SVN r28456]
2005-04-24 05:53:01 +00:00
Jeff Garland
7635f9334d
add facet tests the check setting of name strings
...
[SVN r28441]
2005-04-23 21:15:06 +00:00
Jeff Garland
ad38989a3a
series of changes to support input/output for time zones
...
[SVN r28304]
2005-04-17 21:49:11 +00:00
Jeff Garland
8b5a417459
make changes to eliminate most of the lexical_casts in the code -- hopefully this will help codewarrior 8.3 errors
...
[SVN r28181]
2005-04-12 15:04:33 +00:00
Jeff Garland
44fec40c5f
clear up some test errors for compilers that don't support the new 1.33 fancy i/o facts
...
[SVN r28091]
2005-04-10 23:47:38 +00:00
Jeff Garland
82fbd7f7df
next round of major updates to format-based input-output. Adds various parsers to support full date input
...
[SVN r27797]
2005-03-24 13:07:42 +00:00
Jeff Garland
e71ce4bf36
add empty string test for bug 1155556 which reports failure in the case of an empty string sent to from_simple_string
...
[SVN r27623]
2005-03-12 20:44:03 +00:00
Jeff Garland
174bea2604
added new date parsing tests to go along with updates to date parsing code including new tokenizer stuff
...
[SVN r27622]
2005-03-12 20:30:09 +00:00
Jeff Garland
a62c95047c
fix for failures on gcc3.x on Solaris -- apparently on that platform there is a macro that defines sun == 1 -- unbelievable...
...
[SVN r27618]
2005-03-12 03:56:24 +00:00
Jeff Garland
8b48ef6483
changes to support new io facets
...
[SVN r27359]
2005-02-13 20:50:37 +00:00
Jeff Garland
31383c0c8e
series of test changes associated with new facet code
...
[SVN r26941]
2005-01-30 21:04:49 +00:00
Stefan Slapeta
d9a4057d06
Added bad leap year test
...
[SVN r26859]
2005-01-27 11:08:55 +00:00
Jeff Garland
57280ba606
first version of format-based date facet code
...
[SVN r25717]
2004-10-14 00:04:34 +00:00
Jeff Garland
32954414b1
enhanced tests for changes to to_tm functions
...
[SVN r25618]
2004-10-07 22:30:16 +00:00
Jeff Garland
c649f13a92
1st version of test file for format-based date parser
...
[SVN r25616]
2004-10-07 21:47:43 +00:00
Jeff Garland
9c838d673b
cleanup tm test changes
...
[SVN r25520]
2004-10-01 23:08:56 +00:00