From 98f200fb7e85a5c7e27e9a997c7a2096573e6c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 12 May 2021 22:05:34 +0300 Subject: application/toml: new type https://toml.io/en/v1.0.0#mime-type Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/156 --- tests/mime-detection/list | 2 ++ tests/mime-detection/test.toml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/mime-detection/test.toml (limited to 'tests') diff --git a/tests/mime-detection/list b/tests/mime-detection/list index ae8f3c45..9371ec12 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -333,6 +333,8 @@ html5.css text/css ox # Copied from http://www.w3.org/TR/html5/offline.html#manifests test.manifest text/cache-manifest test.yaml application/x-yaml +# Copied from https://toml.io/en/ +test.toml application/toml ox # hand-made mysum.m text/x-matlab x # taken from Octave 3.2 sources diff --git a/tests/mime-detection/test.toml b/tests/mime-detection/test.toml new file mode 100644 index 00000000..3fe43f07 --- /dev/null +++ b/tests/mime-detection/test.toml @@ -0,0 +1,23 @@ +# This is a TOML document + +title = "TOML Example" + +[owner] +name = "Tom Preston-Werner" +dob = 1979-05-27T07:32:00-08:00 + +[database] +enabled = true +ports = [ 8000, 8001, 8002 ] +data = [ ["delta", "phi"], [3.14] ] +temp_targets = { cpu = 79.5, case = 72.0 } + +[servers] + +[servers.alpha] +ip = "10.0.0.1" +role = "frontend" + +[servers.beta] +ip = "10.0.0.2" +role = "backend" -- cgit v1.2.1