Add tests for tuples
This commit is contained in:
parent
034a6c8efe
commit
3bd550eb68
|
@ -66,6 +66,20 @@ type
|
|||
HoldsArray* = object
|
||||
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:
|
||||
assert isCaseObject(CaseObject)
|
||||
assert isCaseObject(CaseObjectRef)
|
||||
|
|
Loading…
Reference in New Issue