mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user