29 Commits

Author SHA1 Message Date
Felix Krause
329e18e44c removed obsolete TagLibrary type. control tag directives when dumping. fixes #95 2021-03-23 18:51:05 +01:00
Felix Krause
9d92e8a2c5 all serialization tests green again 2020-11-10 15:40:01 +01:00
Felix Krause
aa65c066d5 changed TagId to Tag. removed JS stuff that wasn't working anyway. 2020-11-10 13:55:22 +01:00
Felix Krause
6238104622 started making serializationTests green again 2020-11-06 21:39:50 +01:00
Felix Krause
48d601d959 parser tests working, other tests compiling 2020-11-06 16:21:58 +01:00
Felix Krause
bce3981849 replaced field/object macros with annotations; fixes #66 2020-06-26 21:29:41 +02:00
flyx
1dfc2a3333 Implemented Option serialization. Fixes #78 2020-03-08 19:58:02 +01:00
Vindaar
8a7750cb6c make sure to also append '\0' for JS as well as C backend
Also remove now unnecessary `os` (was imported for internal
`assertStringEqual` test) module import in `tserialization`.
2018-10-12 16:00:39 +02:00
Vindaar
a211eab2c6 whitespace removal to get rid of 'number of spaces around...'
Since whitespace wasn't aligning all `==` anyways, removal seems fine.
2018-10-12 16:00:39 +02:00
Vindaar
da9396a2f3 remove internal string assert test 2018-10-12 16:00:39 +02:00
Vindaar
ebe4201cbc replace assertStringEqual by version checking for content and len
Now check for content *and* length of the strings in
`tserialization`. Also adds a test case for the case with which the
old version would have failed (one string longer than the other, thus
being different).

This version tries to keep the error reporting mechanism the same as
the old version.
2018-10-12 16:00:39 +02:00
Vindaar
81e50d73d9 remove commented out old code 2018-10-12 16:00:39 +02:00
Vindaar
9a445c18bb fix assertStringEqual to make sure not to access null terminator 2018-10-12 16:00:39 +02:00
Vindaar
fb13dc1627 further isNil checks in tserialization fixed 2018-10-12 16:00:39 +02:00
Vindaar
4821ef95fb [soft] take out yTagNimNilString/Seq and related (?) nil tests 2018-10-12 16:00:39 +02:00
Felix Krause
5ebde01ca5 Made tjson and tserialization compile for JS 2017-02-13 17:10:56 +01:00
Felix Krause
5e00d714eb Do not assume RecLists everywhere. Fixes #31 2016-11-30 18:01:03 +01:00
Felix Krause
a51befe30d Improved float parsing
* Fixed #30
 * Accept underscores in float literals
 * Added test
2016-11-10 10:12:32 +01:00
Felix Krause
64f68ae1af Implemented !!timestamp 2016-11-08 21:13:01 +01:00
Felix Krause
dcfa8fd27c Implemented ignoreInputKey 2016-10-27 17:58:14 +02:00
Felix Krause
6402433d2a Implemented setDefaultValue. 2016-10-26 18:32:54 +02:00
Felix Krause
9290ca0d91 Load objects with transient fields 2016-10-19 22:04:46 +02:00
Felix Krause
3ab3dc7ad0 Dump variant objects with transient fields
* tuples not working yet
 * loading not woring yet
 * added tests
2016-10-15 17:58:29 +02:00
Felix Krause
29352fa4fe Use global tag handle for NimYAML
* NimYAML now uses the tag prefix tag:nimyaml.org,2016:
 * That tag handle is shortened to !n! when presenting
 * Also fixed some minor bugs dealing with tag handles
2016-10-10 20:16:54 +02:00
Felix Krause
3942e80d9b Improved error messages and test them. 2016-09-24 16:45:49 +02:00
Felix Krause
2ad41d349e Improved and fixed issues with error reporting 2016-09-23 15:42:24 +02:00
Felix Krause
d987b607e5 Check for custom object errors when loading
* Ensure no duplicate fields
 * Ensure no missing fields
 * Ensure no unknown fields
 * Implemented for both tuples and objects,
   including variant objects
2016-09-21 15:40:03 +02:00
Felix Krause
12960b2e31 Restructuring: no more includes 2016-09-20 21:53:38 +02:00
Felix Krause
8b3f8f5282 Made test names more consistent 2016-09-20 19:22:31 +02:00