Add tests for tuples

This commit is contained in:
Zahary Karadjov 2019-08-12 17:50:50 +03:00
parent 034a6c8efe
commit 3bd550eb68
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 14 additions and 0 deletions

View File

@ -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)