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
ToruNiina
d3e88b3082
add test case for table key
2018-12-12 01:31:36 +09:00
ToruNiina
9f8e86524a
add a lot of dotted keys to test_lex
2018-12-12 01:26:56 +09:00
ToruNiina
4d64c0d8af
add tests for inline table
2018-12-11 23:38:57 +09:00
ToruNiina
e810c3d35e
add tests for equivalent operator
2018-12-11 23:33:32 +09:00
ToruNiina
fc3471434f
add test for array
2018-12-11 23:31:24 +09:00
ToruNiina
be8600abfa
add test for key and string
2018-12-11 23:25:44 +09:00
ToruNiina
e79e6150f2
update testing macro
2018-12-11 23:25:23 +09:00
ToruNiina
3055645323
remove old tests
2018-12-11 21:52:53 +09:00
ToruNiina
0253f49101
add a test for parser (WIP)
2018-12-11 21:51:39 +09:00
ToruNiina
e24039f4ef
update toml::value and improve test_value
...
- enable to store new types
- store source string if possible
- refactoring
2018-12-09 18:03:20 +09:00
ToruNiina
8388664fc6
add map_err_or_else to result
2018-12-08 22:44:15 +09:00