make tests green again

This commit is contained in:
Andreas Rumpf 2018-07-05 15:51:04 +02:00
commit 0926754e68
31 changed files with 61 additions and 55 deletions

View file

@ -43,7 +43,7 @@ proc find*[TKey, TData](root: PElement[TKey, TData], key: TKey): TData {.raises:
if tmp_element.key == key:
return tmp_element.left.data
else:
raise newException(EInvalidKey, "key does not exist: " & key)
raise newException(KeyError, "key does not exist: " & key)
proc add*[TKey, TData](root: var PElement[TKey, TData], key: TKey, data: TData) : bool =
if root.left == nil:

View file

@ -4,7 +4,7 @@ discard """
"""
# Test the overloading resolution in connection with a qualifier
proc write(t: TFile, s: string) =
proc write(t: File, s: string) =
discard # a nop
system.write(stdout, "hello")