Skip to content

Commit 564ef74

Browse files
committed
Test the module type
1 parent 6e2363f commit 564ef74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/module.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::path::{Path, PathBuf};
44
use crate::Options;
55

66
/// All possible types of the AsciiDoc module
7-
#[derive(Debug, Clone)]
7+
#[derive(Debug, Clone, PartialEq)]
88
pub 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");

0 commit comments

Comments
 (0)