diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-01-14 17:16:17 +0100 |
---|---|---|
committer | Miran <narimiran@disroot.org> | 2019-01-14 17:16:17 +0100 |
commit | b78af990b8f656cb17044c96609f58e1f01e6a01 (patch) | |
tree | bb468dd6bad59d1425ad5ac82e73ea68952709ab /tests/stdlib/tmget.nim | |
parent | d69a7842fa0836ca18b8057a33bca81a771a9e5a (diff) | |
download | Nim-b78af990b8f656cb17044c96609f58e1f01e6a01.tar.gz |
Fixes #10065 (#10260)
CountTable now returns 0 instead of 'key not found' for get requests.
Diffstat (limited to 'tests/stdlib/tmget.nim')
-rw-r--r-- | tests/stdlib/tmget.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stdlib/tmget.nim b/tests/stdlib/tmget.nim index 5792b6282..5e2e327f4 100644 --- a/tests/stdlib/tmget.nim +++ b/tests/stdlib/tmget.nim @@ -11,10 +11,10 @@ Can't access 6 Can't access 6 10 11 -Can't access 6 +0 10 11 -Can't access 6 +0 10 11 Can't access 6 @@ -85,7 +85,7 @@ block: except KeyError: echo "Can't access 6" echo x[5] - x[5] += 1 + x.inc 5, 1 var c = x[5] echo c @@ -97,7 +97,7 @@ block: except KeyError: echo "Can't access 6" echo x[5] - x[5] += 1 + x.inc 5, 1 var c = x[5] echo c |