Skip to content

Commit ba5f538

Browse files
committed
Extend the basic test a bit
1 parent e545323 commit ba5f538

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/module.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)