Skip to content

Commit 79f315f

Browse files
committed
1 parent aceb45f commit 79f315f

File tree

440 files changed

+2207
-381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+2207
-381
lines changed

ld/document_loader_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
func TestLoadDocument(t *testing.T) {
2626
dl := NewDefaultDocumentLoader(nil)
2727

28-
rd, _ := dl.LoadDocument("testdata/expand-0002-in.jsonld")
28+
rd, _ := dl.LoadDocument("testdata/expand/0002-in.jsonld")
2929

3030
assert.Equal(t, "t1", rd.Document.(map[string]interface{})["@type"])
3131
}
@@ -60,7 +60,7 @@ func TestParseLinkHeader(t *testing.T) {
6060
t,
6161
map[string][]map[string]string{
6262
"http://www.w3.org/ns/json-ld#context": {{
63-
"target": "remote-doc-0010-context.jsonld",
63+
"target": "remote-doc/0010-context.jsonld",
6464
"rel": "http://www.w3.org/ns/json-ld#context",
6565
}},
6666
},
@@ -72,10 +72,10 @@ func TestCachingDocumentLoaderLoadDocument(t *testing.T) {
7272
cl := NewCachingDocumentLoader(NewDefaultDocumentLoader(nil))
7373

7474
cl.PreloadWithMapping(map[string]string{
75-
"http://www.example.com/expand-0002-in.jsonld": "testdata/expand-0002-in.jsonld",
75+
"http://www.example.com/expand/0002-in.jsonld": "testdata/expand/0002-in.jsonld",
7676
})
7777

78-
rd, _ := cl.LoadDocument("http://www.example.com/expand-0002-in.jsonld")
78+
rd, _ := cl.LoadDocument("http://www.example.com/expand/0002-in.jsonld")
7979

8080
assert.Equal(t, "t1", rd.Document.(map[string]interface{})["@type"])
8181
}

ld/testdata/expand-0029-out.jsonld

Lines changed: 0 additions & 33 deletions
This file was deleted.

ld/testdata/expand-0050-out.jsonld

Lines changed: 0 additions & 6 deletions
This file was deleted.

ld/testdata/expand-0057-out.jsonld

Lines changed: 0 additions & 5 deletions
This file was deleted.

ld/testdata/expand-0059-out.jsonld

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)