mirror of
https://github.com/status-im/nim-stew.git
synced 2025-01-09 19:56:09 +00:00
7b4c9407f2
For serialization and parsing, distinguishing enums with numeric values from enums with associated strings for each value is useful. This adds foundational helpers to allow such distinction.
39 lines
848 B
Nim
39 lines
848 B
Nim
# stew
|
|
# Copyright 2018-2023 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
#
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
#
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
import ranges/all
|
|
|
|
import
|
|
test_assign2,
|
|
test_arrayops,
|
|
test_base10,
|
|
test_base32,
|
|
test_base58,
|
|
test_base64,
|
|
test_bitops2,
|
|
test_bitseqs,
|
|
test_byteutils,
|
|
test_ctops,
|
|
test_endians2,
|
|
test_enums,
|
|
test_io2,
|
|
test_keyed_queue,
|
|
test_sorted_set,
|
|
test_interval_set,
|
|
test_macros,
|
|
test_objects,
|
|
test_ptrops,
|
|
test_sequtils2,
|
|
test_sets,
|
|
test_templateutils,
|
|
test_results,
|
|
test_results2,
|
|
test_varints,
|
|
test_winacl
|