summary refs log tree commit diff stats
path: root/tests/matrix/issue1013.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-09 12:42:00 +0100
committerAraq <rumpf_a@web.de>2015-02-10 20:19:45 +0100
commit247af96b00ae4d995bb668504e10d135fa95506d (patch)
tree880e186a87fb658c77c78c6df18bfdfc8c1d11ad /tests/matrix/issue1013.nim
parent3a8f7d505b3ddfe724af4237516b1ce46c533758 (diff)
downloadNim-247af96b00ae4d995bb668504e10d135fa95506d.tar.gz
cleaned up some tests
Diffstat (limited to 'tests/matrix/issue1013.nim')
-rw-r--r--tests/matrix/issue1013.nim23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/matrix/issue1013.nim b/tests/matrix/issue1013.nim
deleted file mode 100644
index 7d3d52f85..000000000
--- a/tests/matrix/issue1013.nim
+++ /dev/null
@@ -1,23 +0,0 @@
-import typetraits
-
-template reject(e: expr) =
-  static: assert(not compiles(e))
-
-type
-  TMatrix[T; M, N: static[int]] = array[M*N, T]
-
-proc `*`[T; R, N, C](a: TMatrix[T, R, N], b: TMatrix[T, N, C]): TMatrix[T, R, C] =
-  discard
-
-var m1: TMatrix[int, 6, 4]
-var m2: TMatrix[int, 4, 3]
-var m3: TMatrix[int, 3, 3]
-
-var m4 = m1*m2
-static: assert m4.M == 6 and m4.N == 3
-
-reject m1 * m3 # not compatible
-
-var m5 = m2 * m3
-static: assert high(m5) == 11 # 4*3 - 1
-