Commit Graph

703 Commits

Author SHA1 Message Date
Thomas Fussell
a1688c7e48 add size check to removal of trailing zeros in number formats 2016-07-06 18:50:30 +08:00
Thomas Fussell
c99d14792f Merge branch 'master' of github.com:tfussell/xlnt 2016-07-05 21:27:47 -04:00
Thomas Fussell
9f1ac60d20 start implementing complex number formats, test builtin formats 2016-07-05 21:27:35 -04:00
Thomas Fussell
b777fbd490 Merge pull request #56 from xpol/enable-static-build-for-appveyor
Enable static build for appveyor.
2016-07-05 21:24:59 -04:00
Xpol Wan
10964c44ac whitespaces. 2016-07-05 15:35:04 +08:00
Xpol Wan
4976f54145 Fixes static build for msvc. 2016-07-05 13:03:00 +08:00
Xpol Wan
076d42280e Update test location. 2016-07-05 11:41:41 +08:00
Xpol Wan
e214192de0 Debug appveyor. 2016-07-05 11:32:06 +08:00
Xpol Wan
3e9a228538 Enable static build for appveyor.
and cleanup for appveyor build script.
2016-07-05 11:07:41 +08:00
Thomas Fussell
627e6d438e Merge remote-tracking branch 'xpol/remove-and-ignore-genreated-test-runner' 2016-07-04 12:21:46 -04:00
Thomas Fussell
0ee716f94f Merge pull request #54 from xpol/fixes-test-warnings
Fixes warnings about compare double to bool.
2016-07-04 12:17:31 -04:00
Thomas Fussell
47f74fd4c1 fix some windows build problems and warnings 2016-07-05 00:09:51 +08:00
Thomas Fussell
9ae506c1ea move serialization classes to detail, recouple with pugixml (no reason to abstract) 2016-07-03 19:22:08 -04:00
Thomas Fussell
d8b9a71c59 fix std::abs call 2016-07-03 11:41:59 -04:00
Thomas Fussell
54c08246ce improve names to fix errors 2016-07-03 11:34:44 -04:00
Thomas Fussell
d92ad1ab9c finally implement a real number format parser. that was rough... 2016-07-03 11:22:53 -04:00
Xpol Wan
ad6922694e Create directory for generated runner.
And remove IMPLICIT_DEPENDS for runner generating.
2016-06-29 20:23:14 +08:00
Xpol Wan
0fd1264903 Generates runner only when tests files changed.
And move generated files into CMAKE_CURRENT_BINARY_DIR.
2016-06-29 18:24:12 +08:00
Xpol Wan
49e47a57a2 Remove and ignore generated test runner. 2016-06-29 17:30:26 +08:00
Xpol Wan
933beab976 Fixes warnings about compare double to bool. 2016-06-29 17:23:43 +08:00
Thomas Fussell
bdc770d23a improve number_format test coverage 2016-06-24 10:43:51 +01:00
Thomas Fussell
aa0dee3191 add more tests for complex number formats 2016-06-23 10:34:20 +01:00
Thomas Fussell
c7bc216026 improve worksheet test coverage 2016-06-23 09:33:10 +01:00
Thomas Fussell
4dae9438fb add utf8 bom to test_number_format because of euro symbol 2016-06-19 22:43:17 +01:00
Thomas Fussell
b4a7b1c849 fix typo 2016-06-19 22:23:32 +01:00
Thomas Fussell
112aa14e1a test number format locale currency symbol 2016-06-19 22:20:49 +01:00
Thomas Fussell
e26c5595d1 cover missed lines in fill.cpp 2016-06-19 21:58:55 +01:00
Thomas Fussell
523fe10898 test other condition types 2016-06-19 21:50:41 +01:00
Thomas Fussell
7b6b5517d9 finish testing fill 2016-06-19 21:30:15 +01:00
Thomas Fussell
f28e09d9a3 finish testing page setup 2016-06-19 21:16:05 +01:00
Thomas Fussell
2732cd6479 finish testing color 2016-06-19 21:06:12 +01:00
Thomas Fussell
ccb8e66879 remove test for unsigned long long for now 2016-06-19 19:49:41 +01:00
Thomas Fussell
27cb3a089d work on cell.cpp test coverage 2016-06-19 19:43:41 +01:00
Thomas Fussell
d194fe9640 oops, my python is leaking 2016-06-18 23:13:52 +01:00
Thomas Fussell
03080dbe1f test conditional formats 2016-06-18 23:07:22 +01:00
Thomas Fussell
d8eda2aeb4 test text section of custom number format 2016-06-18 10:06:02 +01:00
Thomas Fussell
0cd96b0494 begin creating number_format tests 2016-06-18 09:32:09 +01:00
Thomas Fussell
6010912582 use coveralls' official badge embed markdown 2016-06-18 09:17:28 +01:00
Thomas Fussell
bc410d8835 uncomment test_reverse_column_major_iterators 2016-06-15 13:36:03 +01:00
Thomas Fussell
e8c2dd37c3 Merge pull request #53 from xpol/fixes-reference-type-for-iterators
Fixes type for all iterator::reference.
2016-06-15 08:24:20 -04:00
Thomas Fussell
fbbd984779 Merge pull request #51 from xpol/refactor-index-types
Refactor index types
2016-06-15 08:23:35 -04:00
Thomas Fussell
f521974edc Merge pull request #52 from xpol/fix-linkage-for-utf8string
Add XLNT_CLASS to utf8string to fixes the linking error.
2016-06-15 08:22:56 -04:00
Thomas Fussell
5d2c75014b improve range iterators and their tests 2016-06-15 12:45:05 +01:00
Xpol Wan
5f7a76f6bd Its std::ptrdiff_t in <cstddef>. 2016-06-15 12:18:06 +08:00
Xpol Wan
a0b8b8f5e2 Fixes type for all iterator::reference.
1. we have overloaded operator*() for all iterators, returning a value type T (not a reference).
2. we use the std::reverse_iterator, its operator*() returns a reference type, by default the reference type is T&.

follow implement  std::reverse_iterator::operator*() const are taken form VS2015:

```C++
// in class reverse_iterator

 reference operator*() const
  { // return designated value
  _RanIt _Tmp = current;
  return (*--_Tmp);
  }
```

The `_RanIt` is our base non reverse iterators, the type of `(*--_Tmp)` is `T`. and the `reference` is `T&`. This cause

> warning C4172: returning address of local variable or temporary

And it is bug.

This commit specifies explicitly the 5th template argument for all our iterators base class like `std::iterator<tag,T, ptrdiff_t, T*, T>`.
It make the `reference` to be actually `T` (the value type) and fixes the issue.
2016-06-15 12:05:16 +08:00
Xpol Wan
86002b5338 Add XLNT_CLASS to utf8string to fixes the linking error. 2016-06-15 11:30:51 +08:00
Xpol Wan
eead279c58 compound assignments should implement the operation themself.
rather than depends on binary arithmetic operators, instead, binary arithmetic operators should reuse compound assignments.
2016-06-14 17:46:24 +08:00
Xpol Wan
da59c4a121 Remove doc comments in index_types.cpp.
They are duplicated with comments in index_types.hpp.
2016-06-14 17:24:24 +08:00
Xpol Wan
211cd7a363 make binary arithmetic operators for column_t non-member. 2016-06-14 17:20:49 +08:00
Thomas Fussell
23f65602de revert coverage calculation and work on coverage 2016-06-13 23:36:26 -04:00