@@ -81,7 +81,7 @@ def run_tc(man, tc, options)
81
81
82
82
result = case tc . testType
83
83
when 'jld:CompactTest'
84
- output = JSON ::LD ::API . compact ( tc . input_loc , tc . context_json , validate : true , **tc . options )
84
+ output = JSON ::LD ::API . compact ( tc . input_loc , tc . context_json [ '@context' ] , validate : true , **tc . options )
85
85
expected = JSON . load ( tc . expect ) if tc . evaluationTest? && tc . positiveTest?
86
86
compare_results ( tc , output , expected )
87
87
when 'jld:ExpandTest'
@@ -90,7 +90,7 @@ def run_tc(man, tc, options)
90
90
expected = JSON . load ( tc . expect ) if tc . evaluationTest? && tc . positiveTest?
91
91
compare_results ( tc , output , expected )
92
92
when 'jld:FlattenTest'
93
- output = JSON ::LD ::API . flatten ( tc . input_loc , ( tc . context_json if tc . context_loc ) , validate : true , **tc . options )
93
+ output = JSON ::LD ::API . flatten ( tc . input_loc , ( tc . context_json [ '@context' ] if tc . context_loc ) , validate : true , **tc . options )
94
94
expected = JSON . load ( tc . expect ) if tc . evaluationTest? && tc . positiveTest?
95
95
compare_results ( tc , output , expected )
96
96
when 'jld:FrameTest'
@@ -248,11 +248,14 @@ opts.each do |opt, arg|
248
248
end
249
249
end
250
250
251
- manifests = %w( expand compact flatten fromRdf html remote-doc toRdf ) . map do |man |
252
- "#{ Fixtures ::SuiteTest ::SUITE } #{ man } -manifest.jsonld"
253
- end +
254
- [ "#{ Fixtures ::SuiteTest ::FRAME_SUITE } frame-manifest.jsonld" ] +
251
+ manifests = if options [ :stream ]
255
252
[ "#{ Fixtures ::SuiteTest ::STREAM_SUITE } stream-toRdf-manifest.jsonld" ]
253
+ else
254
+ %w( expand compact flatten fromRdf html remote-doc toRdf ) . map do |man |
255
+ "#{ Fixtures ::SuiteTest ::SUITE } #{ man } -manifest.jsonld"
256
+ end +
257
+ [ "#{ Fixtures ::SuiteTest ::FRAME_SUITE } frame-manifest.jsonld" ]
258
+ end
256
259
257
260
earl_preamble ( options ) if options [ :earl ]
258
261
0 commit comments