nim-stew/tests
Jacek Sieka d085e48e89
results: add `mapConvertErr`, `mapCastErr` (#178)
We already have `mapConvert` and `mapCast` - this completes the API with
corresponding `Err` versions similar to `mapErr`.

The `Convert` / `Cast` operators are of somewhat dubious value - ie
they exist as "efficiency" shortcuts for `map` for the case that the
mapping should be done as a simple cast / conversion - an alternative
would be to deprecate these features and aim for some other, more
generic version that involves a type conversion library such as
https://github.com/status-im/nim-stew/pull/34, though this inherently,
and perhaps rightly, would be limited to "error-free" conversions.

Regardless, these helpers provide balance to the existing API.
2023-06-28 10:27:45 +02:00
..
ranges remove `stew/ranges` (#152) 2022-11-18 12:52:55 +01:00
all_tests.nim varints: remove (#195) 2023-06-12 11:42:27 +02:00
nim.cfg add test for vcc compiler 2020-06-15 21:09:41 +07:00
test_arrayops.nim Migrate to `unittest2` (#125) 2022-07-08 10:34:21 +01:00
test_assign2.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_base10.nim Migrate to `unittest2` (#125) 2022-07-08 10:34:21 +01:00
test_base32.nim Migrate to `unittest2` (#125) 2022-07-08 10:34:21 +01:00
test_base58.nim rm copy of parseHex() from 1.2+ stdlib; some proc -> func (#197) 2023-06-15 14:21:51 +02:00
test_base64.nim Migrate to `unittest2` (#125) 2022-07-08 10:34:21 +01:00
test_bitops2.nim rm copy of parseHex() from 1.2+ stdlib; some proc -> func (#197) 2023-06-15 14:21:51 +02:00
test_bitseqs.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_byteutils.nim byteutils: allow empty output buffers (#157) 2023-01-19 08:19:26 +01:00
test_ctops.nim reduce compiler warnings 2023-02-14 21:35:54 +07:00
test_endians2.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_enums.nim add `enumStyle` helper macro (#189) 2023-05-26 15:41:13 +03:00
test_faux_closures.nim Faux closures: a facility for creating closure-like non-closure procs 2020-07-07 20:29:04 +03:00
test_helper.nim Cross-platform lockFile()/unlockFile() procedures for io2. (#116) 2022-08-05 19:58:34 +03:00
test_interval_set.nim rm copy of parseHex() from 1.2+ stdlib; some proc -> func (#197) 2023-06-15 14:21:51 +02:00
test_io2.nim Fix Windows MAX_PATH limitation for absolute paths in io2 module. (#169) 2023-02-02 09:30:40 +01:00
test_keyed_queue.nim rm copy of parseHex() from 1.2+ stdlib; some proc -> func (#197) 2023-06-15 14:21:51 +02:00
test_leb128.nim Migrate to `unittest2` (#125) 2022-07-08 10:34:21 +01:00
test_macros.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_objects.nim Add objects.isDefaultValue 2022-12-15 17:11:53 +02:00
test_ptrops.nim ptrops: add makeUncheckedArray (#193) 2023-06-12 14:13:18 +02:00
test_results.nim results: add `mapConvertErr`, `mapCastErr` (#178) 2023-06-28 10:27:45 +02:00
test_results2.nim results: work around field access bugs (#167) 2023-01-20 15:32:51 +01:00
test_sequtils2.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_sets.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_sorted_set.nim Updated unit tests using setup facility (#166) 2023-01-19 20:23:21 +00:00
test_templateutils.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00
test_winacl.nim stylecheck: nnkArglist -> nnkArgList (#127) 2022-07-18 11:02:40 +00:00