@@ -75,4 +75,36 @@ public void testFrame0004() throws IOException, JsonLdError {
7575 .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0004-out.jsonld" ));
7676 assertEquals (out , frame2 );
7777 }
78+
79+ @ Test
80+ public void testFrame0005 () throws IOException , JsonLdError {
81+ final Object frame = JsonUtils
82+ .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0005-frame.jsonld" ));
83+ final Object in = JsonUtils
84+ .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0005-in.jsonld" ));
85+
86+ JsonLdOptions opts = new JsonLdOptions ();
87+ opts .setCompactArrays (true );
88+ final Map <String , Object > frame2 = JsonLdProcessor .frame (in , frame , opts );
89+
90+ final Object out = JsonUtils
91+ .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0005-out.jsonld" ));
92+ assertEquals (out , frame2 );
93+ }
94+
95+ @ Test
96+ public void testFrame0006 () throws IOException , JsonLdError {
97+ final Object frame = JsonUtils
98+ .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0006-frame.jsonld" ));
99+ final Object in = JsonUtils
100+ .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0006-in.jsonld" ));
101+
102+ JsonLdOptions opts = new JsonLdOptions ();
103+ opts .setCompactArrays (true );
104+ final Map <String , Object > frame2 = JsonLdProcessor .frame (in , frame , opts );
105+
106+ final Object out = JsonUtils
107+ .fromInputStream (getClass ().getResourceAsStream ("/custom/frame-0006-out.jsonld" ));
108+ assertEquals (out , frame2 );
109+ }
78110}
0 commit comments