ToruNiina
8398b9a08b
test: use array for char*
...
forgot to delete
2020-08-05 20:43:48 +09:00
ToruNiina
9c5abf0bfd
test: check each overload compiles
2020-08-05 20:29:07 +09:00
ToruNiina
72f5afb6af
refactor: remove template from detail::location
2020-07-25 21:06:26 +09:00
ToruNiina
8b5cfb4105
test: add missing binary
flag to ifstream
2020-07-19 16:57:20 +09:00
ToruNiina
93a9f2711c
test: add windows.h test
2020-07-10 18:32:59 +09:00
ToruNiina
125f608fa5
feat: remove TOML11_UNRELEASED_FEATURES.
...
v1.0.0-rc.1 has been released
2020-04-03 23:42:58 +09:00
ToruNiina
4d0ed847f9
test: remove default ctor from test code
2020-03-30 15:04:51 +09:00
ToruNiina
e2790c9e7b
test: remove test_resize and add test_try_reserve
2020-03-27 18:06:02 +09:00
Jordan Williams
02a6f029ad
use ExternalProject to download the toml tests
...
In order to evaluate the relative paths correctly, add_test should use the current binary directory as the working directory.
2020-02-24 07:59:59 -06:00
Jordan Williams
a655a71cef
Revert "use FetchContent to retrieve TOML test data"
...
This reverts commit 4c34986db0
.
2020-02-24 07:31:06 -06:00
Jordan Williams
4c34986db0
use FetchContent to retrieve TOML test data
2020-02-18 19:37:28 -06:00
Jordan Williams
76cae8c057
enable -Wundef flag for tests
2020-02-11 06:25:10 -06:00
Jordan Williams
3930a44ccd
enable range-loop-analysis flag for tests
2020-02-11 06:17:54 -06:00
ToruNiina
573a6f1d81
test: use JSON format_key to format a key in JSON
...
The rule to format a basic string and a key is different. `"""` cannot
be used with JSON keys. Also, toml key is basically not wrapped by `"`.
So we need a function to format a key in JSON.
2020-02-06 01:28:37 +09:00
ToruNiina
7d03eb489a
test: add test cases with quotes in ml-string
...
some of these example strings are copied from toml-lang/toml:README.md
and some are modified.
2020-02-04 22:37:11 +09:00
ToruNiina
d495df93a6
refactor: remove trailing whitespaces
2020-02-04 22:21:37 +09:00
ToruNiina
5c5b1320d0
test: add test for map/vector methods
2020-01-16 20:58:36 +09:00
ToruNiina
ee654b6c3f
chore: add -Werror when building test codes
2020-01-13 11:31:03 +09:00
ToruNiina
c59782d180
fix: remove useless conversions in the test codes
2020-01-13 11:29:17 +09:00
ToruNiina
cafee29c64
test: add some combinations of types in toml::find
2020-01-13 00:27:39 +09:00
ToruNiina
a7a2272b29
chore: turn more diagnostic flags on
2020-01-13 00:16:33 +09:00
ToruNiina
81ed4c0e9d
Merge branch 'master' of github.com:ToruNiina/toml11
2020-01-10 21:17:17 +09:00
ToruNiina
9073d52159
test: check get<foo> works with constructor
2020-01-10 20:39:56 +09:00
ToruNiina
c54a03f189
Merge branch 'master' into find-idx
2020-01-09 00:27:51 +09:00
ToruNiina
a0c5192b74
chore: add option to use sanitizers
2020-01-08 23:07:05 +09:00
ToruNiina
827b433389
Merge branch 'master' into find-idx
2020-01-07 22:13:15 +09:00
ToruNiina
b1827e6fca
test: check immutability of inline tables
2019-12-20 19:46:54 +09:00
ToruNiina
0c084b3a5c
test: add test: accessing via bracket operator
2019-12-10 00:08:40 +09:00
ToruNiina
0a66be3257
test: add test for parsing heterogeneous array
...
this test case is activated only if TOML11_USE_UNRELEASED_TOML_FEATURES
is defined.
2019-11-08 15:52:31 +09:00
ToruNiina
160537360c
test: deactivate error check for hetero array
...
if TOML11_USE_UNRELEASED_TOML_FEATURES is activated.
2019-11-08 15:39:14 +09:00
ToruNiina
54eced6c82
test: add test for toml::string::operator+=
2019-10-09 21:51:33 +09:00
ToruNiina
1148d01c70
Merge branch 'master' into find-idx
2019-10-07 11:11:08 +09:00
ToruNiina
36af02cb3a
test: add test cases for one-way conversion
2019-10-04 13:01:15 +09:00
ToruNiina
17d78553ff
test: add test cases for find(v, idx)
...
- check whether find(v, idx) throws
- check find(v, ks...) works with both indices and strings
2019-10-03 15:48:04 +09:00
ToruNiina
b01c5534ed
test: add test cases for const-ref version
2019-10-03 13:52:12 +09:00
ToruNiina
babb6ab3fe
test: add test case for basic_value::at
2019-09-28 16:22:01 +09:00
ToruNiina
8d1da6e8b5
test: add test cases for find_or(&&) + conversion
2019-09-28 14:01:33 +09:00
ToruNiina
8276e12f06
test: add test cases for toml::find_or(value&&)
2019-09-28 13:38:59 +09:00
ToruNiina
d9689c878d
test: add test cases for toml::find(value&&, key)
2019-09-28 13:05:13 +09:00
ToruNiina
df097cb09a
test: add test cases of get_or(value&&, U)
2019-09-28 12:13:59 +09:00
ToruNiina
a425e3b7c6
test: add test cases of toml::get_or(value&&, T&&)
2019-09-28 12:08:14 +09:00
ToruNiina
e4b4503b81
style: add comment to test::operator<<
2019-09-28 12:07:53 +09:00
ToruNiina
c2e1aa9a3c
Merge branch 'master' into fp-exp-leading-zeroes
2019-09-05 13:50:58 +09:00
ToruNiina
757e5d60be
test: add flag for toml-head features to tests
2019-09-04 13:36:42 +09:00
ToruNiina
c02093de7f
chore: add an option to tests
...
that enable/disable to use unreleased toml features
2019-09-04 13:34:28 +09:00
ToruNiina
d9b8582c47
test: add test for toml::get<T>(std::move(v))
2019-09-01 19:39:37 +09:00
ToruNiina
c9543d8d9e
test: add test of find_or with conversion
2019-08-31 13:05:05 +09:00
ToruNiina
64e7bdb835
test: add test for leading zeroes in fp exp
2019-08-28 17:49:12 +09:00
ToruNiina
7a1b5bd64e
fix: skip whitespaces without newline
2019-08-26 18:16:09 +09:00
ToruNiina
5edf43a1d2
test: add missing include file to test code
2019-07-23 22:32:32 +09:00
ToruNiina
2c192af35d
test: add test for toml::string format
2019-06-29 20:20:31 +09:00
ToruNiina
299d1098e4
test: add serialization test for arbitrary file
2019-06-29 16:40:42 +09:00
ToruNiina
0fc0967f6f
fix: remove CR before comparing to the reference
2019-06-29 15:38:28 +09:00
ToruNiina
df0d870c97
test: add test for serialization with nocomment
2019-06-29 15:00:00 +09:00
ToruNiina
937a3b4a2e
test: add test for nocomment/showcomment
2019-06-28 19:09:05 +09:00
ToruNiina
6182f3ee9d
test: add test for operator<<(os, non-table-value)
2019-06-28 17:56:41 +09:00
ToruNiina
37e96ed8dc
test: add test for format_key()
2019-06-28 17:47:42 +09:00
ToruNiina
134475e292
test: check ostream op for comment containers
2019-06-28 14:58:16 +09:00
ToruNiina
3a5f8a4b88
test: rename test source file
2019-06-22 17:23:51 +09:00
ToruNiina
4d2b24b647
test: add test_find_or
2019-06-22 16:58:45 +09:00
ToruNiina
3fcb6bb20d
test: fix test module name
2019-06-22 16:58:21 +09:00
ToruNiina
1e8af710a0
test: add test for get_or
2019-06-22 16:39:01 +09:00
ToruNiina
0ca8eeeb09
test: add missing include files
2019-06-21 17:11:21 +09:00
ToruNiina
b79797d2c7
refactor: replace BOOST_CHECK_EQUAL by BOOST_TEST
2019-06-21 16:01:14 +09:00
ToruNiina
90918b6d76
test: add basic_value type to serialization tests
2019-06-21 16:01:08 +09:00
ToruNiina
dd9b04ae3b
fix: fix test case name
2019-06-21 16:01:04 +09:00
ToruNiina
4032b438c0
fix: time offset may change while conversion
2019-06-21 16:00:48 +09:00
ToruNiina
7b37d876ae
refactor: update Boost.Test v2 to v3
2019-06-21 14:50:17 +09:00
ToruNiina
713b42e589
refactor: use CHECK_THROW macro to check it throws
2019-06-21 14:47:27 +09:00
ToruNiina
1694f74510
chore: update boost test library usage (v2->v3)
2019-06-21 14:43:13 +09:00
ToruNiina
9f69ffa993
fix: add unsigned symbol to integer literals
2019-06-21 14:42:44 +09:00
ToruNiina
0cee58b0b1
Merge branch 'v3' of github.com:ToruNiina/toml11 into v3
2019-06-21 14:31:52 +09:00
ToruNiina
e8d535e485
test: add tests for constructors with comments
2019-06-21 14:26:49 +09:00
ToruNiina
ec839bbd75
chore: add -Wextra when compiling tests
2019-06-21 00:29:45 +09:00
ToruNiina
3b71f80652
refactor: streamsize is a signed integer
2019-06-21 00:00:37 +09:00
ToruNiina
86a1f7ad75
fix: add missing include files
2019-06-20 16:23:51 +09:00
ToruNiina
99c10dd6bc
fix: enable to deduce what basic_value to be used
2019-06-20 16:21:01 +09:00
ToruNiina
c3922c0d51
test: move some test_cases across test files
2019-06-20 14:43:31 +09:00
ToruNiina
f178379c07
test: add test_find
2019-06-20 14:34:42 +09:00
ToruNiina
9663a6bbdb
Merge branch 'master' into v3
2019-06-19 19:53:08 +09:00
ToruNiina
cab3144507
style: format CMakelists.txt
2019-06-19 16:53:45 +09:00
ToruNiina
7e5859ba73
Merge branch 'master' into v3
2019-06-19 15:36:27 +09:00
ToruNiina
86e55c3bf7
test: check serialization keeps comments
2019-06-18 01:26:16 +09:00
ToruNiina
159283fdad
test: check preserve_comment keep it read
2019-06-18 01:25:43 +09:00
ToruNiina
fb5834caab
refactor: exchange order of test section
2019-06-18 00:45:30 +09:00
ToruNiina
228487eafd
test: fix typos in tests
2019-06-17 23:46:42 +09:00
ToruNiina
bf2dc76d5e
test: add test for templatized conversions
2019-06-17 23:21:18 +09:00
ToruNiina
4008c24e84
test: add test for init-list-map to value conversion
2019-06-17 22:50:38 +09:00
ToruNiina
bf4eae0b76
test: drop test for find_or(table)
2019-06-17 22:14:26 +09:00
Toru Niina
569341a514
Merge pull request #69 from KerstinKeller/cmake_install
...
Allow to install toml11 library with CMake.
2019-06-17 18:03:00 +09:00
ToruNiina
cbaaaaca7c
⏪ revert recursive find function
...
I found that in a user-code (I'm also one of the users of this library),
this new feature sometimes causes an error. Some of my code won't
compile because of this change. Since toml::table is convertible to
toml::value *implicitly*, if toml::find(table, key, tablename) was
called, the overload resolution becomes ambiguous with toml::find(
value, key1, key2). But dropping support for toml::find(toml::table,
key, tablename) is a breaking change. So I concluded that now is not
the right time yet.
2019-06-16 19:55:40 +09:00
ToruNiina
8665272bab
test: add test for custom basic_value type
2019-06-15 20:25:19 +09:00
ToruNiina
9acc55a7ac
test: add test for discard_comment
2019-06-15 17:18:25 +09:00
ToruNiina
177022b2cb
test: update tests for comment
2019-06-15 17:13:25 +09:00
KerstinKeller
acbc2a73cb
Allow to install tom11 library with CMake.
...
Add option to build tests.
2019-06-14 17:24:21 +02:00
ToruNiina
6345910c3e
🔀 Merge branch 'master' into v3
2019-06-08 20:05:05 +09:00
ToruNiina
54d46f08c3
🔀 Merge branch 'master' into v3
2019-06-08 19:40:11 +09:00
ToruNiina
57cb806e14
Merge branch 'master' into throw-from-as-something
2019-06-08 19:23:32 +09:00
ToruNiina
d6f3654185
refactor: reduce test code by using CHECK_THROW
2019-06-08 19:23:12 +09:00
ToruNiina
8befe3f1ad
test: add test for throw/nothrow versions of as_*
2019-06-08 19:20:09 +09:00