File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -300,18 +300,21 @@ mod tests {
300300 use crate :: Options ;
301301
302302 #[ test]
303- fn check_module_fields ( ) {
303+ fn check_basic_assembly_fields ( ) {
304304 let options = Options {
305305 comments : false ,
306306 prefixes : true ,
307307 target_dir : "." . to_string ( ) ,
308- detect_directory : true ,
308+ detect_directory : false ,
309309 } ;
310- let module = Module :: new ( ModuleType :: Assembly , "A testing assembly with /special-characters*" , & options) ;
310+ let assembly = Module :: new ( ModuleType :: Assembly , "A testing assembly with /special-characters*" , & options) ;
311311
312312 // We can't test this until we implement a way to compare the enum values
313313 // assert_eq!(module.mod_type, ModuleType::Assembly);
314- assert_eq ! ( module. title, "A testing assembly with /special-characters*" . to_string( ) ) ;
315- assert_eq ! ( module. id, "a-testing-assembly-with-special-characters" . to_string( ) ) ;
314+ assert_eq ! ( assembly. title, "A testing assembly with /special-characters*" ) ;
315+ assert_eq ! ( assembly. id, "a-testing-assembly-with-special-characters" ) ;
316+ assert_eq ! ( assembly. file_name, "assembly_a-testing-assembly-with-special-characters.adoc" ) ;
317+ assert_eq ! ( assembly. include_statement, "include::<path>/assembly_a-testing-assembly-with-special-characters.adoc[leveloffset=+1]" ) ;
318+ assert_eq ! ( assembly. includes, None ) ;
316319 }
317320}
You can’t perform that action at this time.
0 commit comments