File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::path::{Path, PathBuf};
44use crate :: Options ;
55
66/// All possible types of the AsciiDoc module
7- #[ derive( Debug , Clone ) ]
7+ #[ derive( Debug , Clone , PartialEq ) ]
88pub enum ModuleType {
99 Assembly ,
1010 Concept ,
@@ -315,8 +315,7 @@ mod tests {
315315 } ;
316316 let assembly = Module :: new ( ModuleType :: Assembly , "A testing assembly with /special-characters*" , & options) ;
317317
318- // We can't test this until we implement a way to compare the enum values
319- // assert_eq!(module.mod_type, ModuleType::Assembly);
318+ assert_eq ! ( assembly. mod_type, ModuleType :: Assembly ) ;
320319 assert_eq ! ( assembly. title, "A testing assembly with /special-characters*" ) ;
321320 assert_eq ! ( assembly. id, "a-testing-assembly-with-special-characters" ) ;
322321 assert_eq ! ( assembly. file_name, "assembly_a-testing-assembly-with-special-characters.adoc" ) ;
You can’t perform that action at this time.
0 commit comments