unittest broken? #4555

andreaferretti opened this Issue Aug 2, 2016 · 0 comments


None yet

1 participant


It seems that today I cannot run tests for most of my libraries. Apparently, unittest creates some checkpoints internally, and then I get the error checkpoints = @ []' has no type (or is ambiguous). This happens consistently across various libraries, so I guess it is a unittest problem.

For instance, in memo I get (nim c -r test):

test.nim(32, 7) template/generic instantiation from here
test.nim(34, 5) Error: expression 'block:
    var :c1 = fastFib(40)
    var :c2 = fib(40)
    if not (:c1 == :c2):
      checkpoint("test.nim(34,22): Check failed: fastFib(40) == fib(40)")
      checkpoint("fastFib(40) was " & $ :c1)
      checkpoint("fib(40) was " & $ :c2)
      for msg168802 in items(checkpoints): echo [msg168802]
      if abortOnError: quit(1)
      programResult += 1
      checkpoints = @ []' has no type (or is ambiguous)
@Araq Araq added a commit that closed this issue Aug 2, 2016
@Araq Araq fixes #4555 de6198c
@Araq Araq closed this in de6198c Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment