mirror of
https://github.com/status-im/nim-serialization.git
synced 2025-02-21 08:18:19 +00:00
Add tests for tuples
This commit is contained in:
parent
034a6c8efe
commit
3bd550eb68
@ -66,6 +66,20 @@ type
|
|||||||
HoldsArray* = object
|
HoldsArray* = object
|
||||||
data*: seq[int]
|
data*: seq[int]
|
||||||
|
|
||||||
|
AnonTuple* = (int, string, float64)
|
||||||
|
|
||||||
|
AbcTuple* = tuple[a: int, b: string, c: float64]
|
||||||
|
|
||||||
|
XyzTuple* = tuple
|
||||||
|
x*: int
|
||||||
|
y*: string
|
||||||
|
z*: float64
|
||||||
|
|
||||||
|
HoldsTuples* = object
|
||||||
|
t1*: AnonTuple
|
||||||
|
t2*: AbcTuple
|
||||||
|
t3*: XyzTuple
|
||||||
|
|
||||||
static:
|
static:
|
||||||
assert isCaseObject(CaseObject)
|
assert isCaseObject(CaseObject)
|
||||||
assert isCaseObject(CaseObjectRef)
|
assert isCaseObject(CaseObjectRef)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user