andri lim
08055d72f3
Fix deprecated fields reader usage in generic_suite ( #76 )
2024-10-15 18:24:23 +07:00
Jacek Sieka
7950ac1e8c
return serializer table directly ( #74 )
...
This allows it to be captured in a const instead of relying on a
threadvar
2024-09-30 15:09:29 +02:00
jangko
7cb0c31cb2
Remove unused type in test code
2023-12-14 10:36:15 +07:00
jangko
13be296cf0
Remove unused debugging code
2023-12-14 10:09:01 +07:00
Etan Kissling
4bdbc29e54
add {.raises.}
annotation to writeValue
( #62 )
...
Tag `writeValue` overrides with `{.raises: [IOError].}`.
2023-08-19 12:24:46 +02:00
jangko
9f56a0738c
More fix to exception tracking and generic_suite
...
This fixes required by nim-json-serialization to pass test
with nim devel since we drop support for nim 1.2 and 1.4
2023-06-05 15:18:52 +07:00
Jacek Sieka
fcd0eadadd
clean up imports, unittest2
2021-08-16 15:09:31 +03:00
Zahary Karadjov
f9a1121b87
Make the flavors support optional when defining formats
...
Other changes:
* The format declarations have been broken down in multiple
parts. This makes it possible to structure the implementation
libraries in a way such that the format name is accessible even
when importing only reader or writer modules.
* Flavors lead to more complicated Reader and Writer types.
Instead of requiring the user to write down long type names
such as `JsonReader[DefaultFlavor]`, it's now possible to refer
to the reader and writer type of each format using expressions
such as `Json.Reader` and `Json.Writer`.
* Fixed a typo (PreferredOutput)
2021-03-19 04:04:14 +02:00
Zahary Karadjov
501f94ad61
Allow checking if the serialization tracing is enabled
2020-05-29 21:32:44 +03:00
Zahary Karadjov
16e6bcd16d
More tests with derived types
2020-05-27 11:33:02 +03:00
Zahary Karadjov
2baaccd50e
Add roundtrip tests using inheritance
2020-05-26 19:38:03 +03:00
Zahary Karadjov
8a25451fce
Add an easier way to enable the serializaton tracing
2020-05-22 15:20:24 +03:00
Zahary Karadjov
5e8ec3485c
Use the latest FastStreams API
2020-05-13 11:40:00 +03:00
Alexander Ivanov
f310607d04
Test for non-string keys of table
2020-05-08 16:57:33 +03:00
Zahary Karadjov
8f6e86350e
Take advantage of some improvements in Nim 1.2
2020-04-13 16:58:25 +03:00
Zahary Karadjov
23bbf4b6a5
Use the latest FastStreams API
2020-04-09 23:13:42 +03:00
Zahary Karadjov
68e9ef7901
More comprehensive test suite; Depends on Fixes in Nim 1.2
2020-04-09 19:25:07 +03:00
Zahary Karadjov
ae60eef4e8
Reduce warnings in Nim 1.0.2; Fix #16
2019-11-04 18:55:12 +00:00
Zahary Karadjov
5ef8130c79
Add a very basic test and a CI config
2019-08-14 17:33:14 +02:00
Zahary Karadjov
3bd550eb68
Add tests for tuples
2019-08-12 17:50:50 +03:00
Alexander Ivanov
034a6c8efe
Implement unnamed tuple support
2019-08-08 23:18:36 +03:00
Zahary Karadjov
56ad4b18de
Transfer some of the complexity in handling case objects from SSZ to the general serialization lib
2019-08-05 16:54:17 +03:00
Zahary Karadjov
e97e0b0684
Add roundtrip tests for tables
2019-08-05 16:54:17 +03:00
Zahary Karadjov
897a6638cf
Extract common test cases and patterns used by both SSZ and JSON
2019-08-05 16:54:17 +03:00
Zahary Karadjov
e26985dec3
Fix a compilation issue in the roundtripTest when used with case objects
2019-08-05 16:54:17 +03:00
Jacek Sieka
6025b5d3a7
fix typo
2019-06-28 09:51:28 +02:00
Zahary Karadjov
6bbde4d3a0
Ergonomic improvements for roundtripTest
2019-06-24 17:37:30 +03:00
Zahary Karadjov
3a56635499
New roundtripTest helper that checks the serialized value as well
2019-06-24 16:46:23 +03:00
Zahary Karadjov
030c8e2cbe
Use the latest OutputStream; Needed helpers for the SSZ support
2019-03-11 11:34:04 +02:00
Zahary Karadjov
94224f6e18
More comprehensive APIs; Tests
2018-12-19 12:44:18 +02:00