summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorDavid Krause <enthus1ast@users.noreply.github.com>2022-02-14 08:56:35 +0100
committerGitHub <noreply@github.com>2022-02-14 08:56:35 +0100
commitcda77c15209519ea04f889a826ac79c7cbb7e152 (patch)
treecbae82f775ea7a0d51e1bf690b65b9b473f51773 /tests/stdlib
parent551225d88808c6029d9246cf2bea5da349d1eb43 (diff)
downloadNim-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.nim2
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