This commit is contained in:
parent
165d39738d
commit
fee5fbc722
3 changed files with 32 additions and 50 deletions
13
tests/stdlib/tmimetypes.nim
Normal file
13
tests/stdlib/tmimetypes.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
targets: "c js"
|
||||
"""
|
||||
|
||||
import std/mimetypes
|
||||
template main() =
|
||||
var m = newMimetypes()
|
||||
doAssert m.getMimetype("mp4") == "video/mp4"
|
||||
# see also `runnableExamples`.
|
||||
# xxx we should have a way to avoid duplicating code between runnableExamples and tests
|
||||
|
||||
static: main()
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue