make tests green again
This commit is contained in:
parent
9b31f67859
commit
0926754e68
31 changed files with 61 additions and 55 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue