guile-jsonld/test-modules/testsuite.scm

testsuite.scm

1
;;;; Copyright (C) 2020 Julien Lepiller <julien@lepiller.eu>
2
;;;; 
3
;;;; This library is free software; you can redistribute it and/or
4
;;;; modify it under the terms of the GNU Lesser General Public
5
;;;; License as published by the Free Software Foundation; either
6
;;;; version 3 of the License, or (at your option) any later version.
7
;;;; 
8
;;;; This library is distributed in the hope that it will be useful,
9
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
;;;; Lesser General Public License for more details.
12
;;;; 
13
;;;; You should have received a copy of the GNU Lesser General Public
14
;;;; License along with this library; if not, write to the Free Software
15
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
;;;; 
17
18
(define-module (test-modules testsuite)
19
  #:export (expected-failures
20
            compact-test-url
21
            expand-test-url
22
            flatten-test-url
23
            html-test-url
24
            remote-doc-test-url
25
            jsonld-test-url
26
            fromrdf-test-url
27
            tordf-test-url))
28
29
(define jsonld-test-url "https://w3c.github.io/json-ld-api/tests/")
30
31
(define compact-test-url
32
  (string-append jsonld-test-url "compact-manifest.jsonld"))
33
34
(define expand-test-url
35
  (string-append jsonld-test-url "expand-manifest.jsonld"))
36
37
(define flatten-test-url
38
  (string-append jsonld-test-url "flatten-manifest.jsonld"))
39
40
(define html-test-url
41
  (string-append jsonld-test-url "html-manifest.jsonld"))
42
43
(define remote-doc-test-url
44
  (string-append jsonld-test-url "remote-doc-manifest.jsonld"))
45
46
(define fromrdf-test-url
47
  (string-append jsonld-test-url "fromRdf-manifest.jsonld"))
48
49
(define tordf-test-url
50
  (string-append jsonld-test-url "toRdf-manifest.jsonld"))
51
52
(define expected-failures
53
  `(("https://w3c.github.io/json-ld-api/tests/html-manifest.jsonld#te010" .
54
       "entities are not preserved by xml->sxml")
55
    ("https://w3c.github.io/json-ld-api/tests/html-manifest.jsonld#te015" .
56
       "HTML tags in scripts are not ignored by xml->sxml")
57
    ("https://w3c.github.io/json-ld-api/tests/html-manifest.jsonld#te016" .
58
       "HTML tags in scripts are not ignored by xml->sxml")
59
    ("https://w3c.github.io/json-ld-api/tests/html-manifest.jsonld#te017" .
60
       "HTML tags in scripts are not ignored by xml->sxml")
61
    ))
62