diff options
author | David Krause <enthus1ast@users.noreply.github.com> | 2022-02-14 08:56:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 08:56:35 +0100 |
commit | cda77c15209519ea04f889a826ac79c7cbb7e152 (patch) | |
tree | cbae82f775ea7a0d51e1bf690b65b9b473f51773 /tests/stdlib | |
parent | 551225d88808c6029d9246cf2bea5da349d1eb43 (diff) | |
download | Nim-cda77c15209519ea04f889a826ac79c7cbb7e152.tar.gz |
use OrderedTable instead of OrderedTableRef for mimedb (#19522)
* use OrderedTable instead of OrderedTableRef for mimedb Signed-off-by: David Krause <enthus1ast@users.noreply.github.com> * added changelog entry for mimedb change Signed-off-by: David Krause <enthus1ast@users.noreply.github.com>
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tmimetypes.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/stdlib/tmimetypes.nim b/tests/stdlib/tmimetypes.nim index 93c20d4a3..6435309e1 100644 --- a/tests/stdlib/tmimetypes.nim +++ b/tests/stdlib/tmimetypes.nim @@ -7,6 +7,8 @@ template main() = var m = newMimetypes() doAssert m.getMimetype("mp4") == "video/mp4" doAssert m.getExt("application/json") == "json" + m.register("foo", "baa") + doAssert m.getMimetype("foo") == "baa" # see also `runnableExamples`. # xxx we should have a way to avoid duplicating code between runnableExamples and tests |