11#![ cfg( not( target_os = "windows" ) ) ]
22// ^ don't want to mess around with getting librdfa to run on Windows
33
4+ use html2rdf:: { Options , host_language:: Html5 } ;
45use oxrdf:: Graph ;
56use pyo3:: prelude:: * ;
67
@@ -20,13 +21,15 @@ mod utils;
2021/// - does not implement the content-sniffing used to determine a datatype for time values
2122/// - does not read @datetime on <time>
2223#[ test]
24+ #[ ignore = "not yet working - need to loosen IRI parsing" ]
2325fn fuzz_oracle ( ) {
2426 Python :: initialize ( ) ;
2527 let base = oxiri:: Iri :: parse ( "https://rdfa.test/" ) . unwrap ( ) ;
2628 bolero:: check!( ) . for_each ( |input : & [ u8 ] | {
2729 let input_str = String :: from_utf8_lossy ( input) ;
2830 let ( my_output, my_processor) =
29- html2rdf:: doc_to_graphs ( & input_str, base. clone ( ) , html2rdf:: Options :: default ( ) ) ;
31+ html2rdf:: doc_to_graphs :: < Html5 , Graph > ( & input_str, base. clone ( ) , Options :: default ( ) )
32+ . unwrap ( ) ;
3033
3134 // try this first cause it's faster
3235 let librdfa_output = run_librdfa ( & input_str, base. as_str ( ) ) ;
@@ -43,7 +46,7 @@ fn fuzz_oracle() {
4346
4447 eprintln ! (
4548 "Processor graph:\n {}" ,
46- utils:: serialize_graph( my_processor, base. as_str( ) )
49+ utils:: serialize_graph( & my_processor, base. as_str( ) )
4750 ) ;
4851
4952 // neither matched, so assert against both to get a diff
0 commit comments