ToruNiina
21ea4a348d
test: explicitly specify template arguments
...
toml::value is an alias of default parameters, so we need to avoid
conflict of definitions between default and non-default parameters
2021-04-27 13:12:37 +09:00
ToruNiina
c4a803df50
test: add comment/no-comment cases to parse_array
...
When we add a macro to change the default comment preservation scheme,
some of the current tests that assume comments are discarded by defualt
fails. To make it more robust, we need to explicitly specify the comment
preservation scheme and add test cases for both of discard_ and
preserve_comments.
2021-04-27 13:05:03 +09:00
ToruNiina
e658a0126c
test: disable macro testing if the macro is diabled
2021-04-02 18:26:24 +09:00
ToruNiina
14c6430dda
Merge branch 'master' into auto-conversion-macro
2021-04-02 16:25:41 +09:00
ToruNiina
e9144b41fb
test: returning toml::value directly from into<T>
2020-12-29 18:53:10 +09:00
ToruNiina
0dafa7ee42
test: add case where a table should be inlined
...
array-of-table implicitly defines an array. If the array itself has a
comment, we need to format it explicitly.
2020-10-18 20:45:12 +09:00
ToruNiina
bfae1ab86c
test: add test for auto-generated conversion
2020-10-16 21:40:54 +09:00
ToruNiina
290dca3d67
test: add test for comment duplication
2020-10-13 22:04:28 +09:00
ToruNiina
ba7d49f452
test: use normal string literal
...
as a workaround for older version of gcc
2020-09-19 19:08:20 +09:00
ToruNiina
b0784ce286
test: in case of comment-before-comma
2020-09-19 18:24:23 +09:00
ToruNiina
84fb703e04
ci: add utf-8 option to MSVC
2020-09-19 00:41:05 +09:00
ToruNiina
8c2560761b
chore: enable to use __cplusplus on MSVC
...
related: https://github.com/ToruNiina/toml11/issues/112
2020-09-19 00:40:44 +09:00
ToruNiina
07ea5e52e2
ci: pass REQ_FS_LIB=ON in case of g++-8 & C++20
2020-09-16 22:16:20 +09:00
ToruNiina
528031012d
test: add test for u8""_toml literals
2020-09-16 21:25:38 +09:00
ToruNiina
c205c762fe
test: remove needless u8
s from ascii characters
2020-09-16 21:25:04 +09:00
ToruNiina
c8ff302c94
test: add test for no-eof-newline cases
2020-09-14 16:39:05 +09:00
ToruNiina
79ddcaece6
chore: add CMake option to link with (std)c++fs
2020-08-06 16:29:24 +09:00
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