make tests green again
This commit is contained in:
parent
9b31f67859
commit
0926754e68
31 changed files with 61 additions and 55 deletions
|
|
@ -1,5 +1,5 @@
|
|||
type
|
||||
Matrix*[M, N: static[int], T: SomeReal] = object
|
||||
Matrix*[M, N: static[int], T: SomeFloat] = object
|
||||
data: ref array[N * M, T]
|
||||
|
||||
Matrix64*[M, N: static[int]] = Matrix[M, N, float64]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
## Created by Eric Doughty-Papassideris on 2011-02-16.
|
||||
|
||||
type
|
||||
TGen[T] = object of TObject
|
||||
TGen[T] = object of RootObj
|
||||
x, y: T
|
||||
|
||||
TSpef[T] = object of TGen[T]
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
type
|
||||
TProperty[T] = object of TObject
|
||||
TProperty[T] = object of RootObj
|
||||
getProc: proc(property: TProperty[T]): T {.nimcall.}
|
||||
setProc: proc(property: TProperty[T], value: T) {.nimcall.}
|
||||
value: T
|
||||
|
||||
proc newProperty[T](value: TObject): TProperty[T] =
|
||||
proc newProperty[T](value: RootObj): TProperty[T] =
|
||||
result.getProc = proc (property: TProperty[T]) =
|
||||
return property.value
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ discard """
|
|||
"""
|
||||
|
||||
type
|
||||
Matrix[M,N: static[int]; T: SomeReal] = distinct array[0..(M*N - 1), T]
|
||||
Matrix[M,N: static[int]; T: SomeFloat] = distinct array[0..(M*N - 1), T]
|
||||
|
||||
let a = new Matrix[2,2,float]
|
||||
let b = new Matrix[2,1,float]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue