We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrderedTable.== throws error on empty table: unhandled exception: index out of bounds, the container is empty [IndexDefect]
import tables var t1 = OrderedTable[int, string]() var t2 = OrderedTable[int, string]() echo t1 == t2
Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]
true
$ nim -v Nim Compiler Version 1.4.0 [MacOSX: amd64] Compiled at 2020-10-27 Copyright (c) 2006-2020 by Andreas Rumpf active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
fix nim-lang#15750
25fad58
You should use initOrderTable to initialize OrderTable.
initOrderTable
OrderTable
import tables var t1 = initOrderedTable[int, string]() var t2 = initOrderedTable[int, string]() doAssert t1 == t2
Sorry, something went wrong.
0621de4
b13fb9d
fix #15750
96bd642
(cherry picked from commit b13fb9d)
fb3b5b7
9aba4e0
639e23a
narimiran
No branches or pull requests
OrderedTable.== throws error on empty table: unhandled exception: index out of bounds, the container is empty [IndexDefect]
Example
Current Output
Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]
Expected Output
true
$ nim -v
Nim Compiler Version 1.4.0 [MacOSX: amd64]
Compiled at 2020-10-27
Copyright (c) 2006-2020 by Andreas Rumpf
active boot switches: -d:release
The text was updated successfully, but these errors were encountered: