ToruNiina
ca3f6102ef
fix: correctly resolve overloads of get_or
2019-03-18 16:44:36 +09:00
Toru Niina
ccf03d9291
Merge pull request #44 from ToruNiina/test-link
...
test: add test for multiple translation unit
2019-03-18 15:20:04 +09:00
ToruNiina
d5369c3429
test: add test for multiple translation unit
2019-03-18 12:39:58 +09:00
ToruNiina
3bfa7f09ba
test: use the test suite in the effective way
...
add tests/check_toml_test.cpp to compare json object
2019-03-18 01:36:43 +09:00
ToruNiina
77ab391885
ci: fix name of directory and add test script
2019-03-17 19:20:24 +09:00
Toru Niina
f3e3000d45
Merge pull request #40 from ToruNiina/remove-to-toml
...
refactor: remove to_toml and related tests
2019-03-17 13:12:30 +09:00
Toru Niina
d86870e038
Merge pull request #38 from ToruNiina/get-any-type
...
extended conversions
2019-03-17 13:11:59 +09:00
ToruNiina
d17c192681
refactor: remove to_toml and related tests
2019-03-16 17:05:58 +09:00
ToruNiina
30a41aa710
fix: use older style in BOOST_TEST
2019-03-16 16:15:01 +09:00
ToruNiina
190636b791
fix: support getting a container of external types
2019-03-16 15:52:22 +09:00
ToruNiina
31e450f9af
test: add test for from/into
based conversions
2019-03-16 15:46:21 +09:00
ToruNiina
055353a460
chore: merge branch 'master' into is-something
2019-03-15 17:25:17 +09:00
ToruNiina
59aaaab436
test: add test to check format_error compiles
2019-03-15 12:40:01 +09:00
ToruNiina
6693ec78f4
test: add test for toml::value::is_something()
2019-03-12 20:44:27 +09:00
ToruNiina
679b365cf7
feat: get region info when parsing keys
...
Error messages related to dotted keys looks weird. like:
1 | a.b.c = 42
| ~~ in this table
The underlined token is not a table. This should be like the following.
1 | a.b.c = 42
| ~~~ in this table
To implement this, the region information is needed when the keys are
read. This commit add this functionality, though currently the region
information is not used yet.
2019-02-26 00:17:28 +09:00
ToruNiina
24aefc52a1
test: set width in test_serialize
2019-02-14 15:46:12 +09:00
ToruNiina
ba8c205253
fix: change CRLF into LF before comparison
2019-02-13 23:48:53 +09:00
ToruNiina
31193d99ba
Merge branch 'master' into serialize
2019-02-13 23:16:39 +09:00
ToruNiina
46569da231
fix: avoid auto-conversion while making test case
2019-02-13 19:51:54 +09:00
ToruNiina
5e20a8ff16
fix: add scope to the test case to flush
2019-02-13 19:26:52 +09:00
ToruNiina
dd9319245e
fix: open file as binary-mode #16
...
to avoid inconsistency between file size (obtained by tellg) and the
size of the actual contents that would be read later
2019-02-13 19:18:09 +09:00
ToruNiina
4bbe42d105
test: add test_serialize_file
2019-02-13 13:51:36 +09:00
Toru Niina
b5b8830c29
Merge pull request #17 from ToruNiina/hotfix
...
fix the error with BOM and end of file w/o newline
2018-12-24 16:37:10 +09:00
ToruNiina
87a5c844c2
add test cases for the end-of-file problems
2018-12-24 16:02:32 +09:00
ToruNiina
5546b3389d
Merge branch 'master' into error-message
2018-12-22 17:55:59 +09:00
ToruNiina
edb48b2872
add test_error_detection to check it detects error
2018-12-22 17:43:42 +09:00
ToruNiina
4d02f399a2
add temporary to receive rvalue
2018-12-17 23:03:53 +09:00
ToruNiina
7b3684b54e
add and_other and or_other to toml::result
...
effectively same as Rust's std::Result::and and or.
2018-12-17 18:24:41 +09:00
ToruNiina
19524dbc4b
fix silly typo
2018-12-16 21:13:21 +09:00
ToruNiina
c2e733a65d
enable to get toml::value as toml::value
2018-12-16 20:50:40 +09:00
ToruNiina
95d73a290f
add test case for reading dotted-keys
2018-12-13 13:07:48 +09:00
ToruNiina
26e0d87d3b
enable nanoseconds in datetimes
2018-12-13 12:49:53 +09:00
ToruNiina
fb6d51954a
turn test_parse_unicode on; no change required
2018-12-13 02:28:52 +09:00
ToruNiina
4d7cfc9d1d
turn test_parse_file on
...
the required change is;
- change Datetime -> offset_datetime and construct correctly.
2018-12-13 02:26:55 +09:00
ToruNiina
514f3c773f
set test_from_toml
2018-12-13 02:24:03 +09:00
ToruNiina
27a80b1214
rename get(table, key) to find()
2018-12-13 02:00:13 +09:00
ToruNiina
f62bcb3077
update cmakelists
2018-12-13 01:30:25 +09:00
ToruNiina
be1a310ae5
move test for find to get_related
2018-12-13 01:30:06 +09:00
ToruNiina
2080b30110
add test cases for test_to_toml
2018-12-13 00:38:36 +09:00
ToruNiina
d370ae7d0d
set tm_isdst as negative value
2018-12-13 00:35:43 +09:00
ToruNiina
83b588a8c8
rename test code
2018-12-13 00:35:05 +09:00
ToruNiina
a19c9b4a39
add test case for find & get
2018-12-12 21:55:11 +09:00
ToruNiina
f64430af92
remove old test; individual test cases are added
...
test_parse_* is now available, old test_parser is not needed now
2018-12-12 20:55:58 +09:00
ToruNiina
8e154cdd74
add test case for parsing datetime
2018-12-12 20:55:30 +09:00
ToruNiina
cfd82c95f0
add test case for getting converted map
2018-12-12 20:32:26 +09:00
ToruNiina
18a22eb3c4
add test cases for datetime variants
2018-12-12 20:28:31 +09:00
ToruNiina
5a20d55dd0
add test for toml::get
2018-12-12 17:23:06 +09:00
ToruNiina
fcbfbd3a26
supress warning about comparison between signed and unsigned
2018-12-12 16:12:10 +09:00
ToruNiina
5dea88001e
add test case for array-of-tables
2018-12-12 12:13:49 +09:00
ToruNiina
b63dc1f370
remove extra comma
2018-12-12 01:36:20 +09:00