allow specifying applications, preparation to also add 'landesgesetze'
All checks were successful
CI/CD Pipeline / test (push) Successful in 3m3s

This commit is contained in:
2024-08-22 10:46:59 +02:00
parent f00d44f275
commit 0154d00c58
7 changed files with 88 additions and 29 deletions

View File

@ -105,7 +105,7 @@ impl Parser {
/// use risp::{Config, law::{Law, Heading, Content, Section, HeadingContent}};
/// use std::path::Path;
///
/// let (_, mut builder, parser) = Config::load(Path::new("data/configs/abgb.toml")).unwrap();
/// let (_, _, mut builder, parser) = Config::load(Path::new("data/configs/abgb.toml")).unwrap();
/// let result = parser.parse("https://www.ris.bka.gv.at/Dokumente/Bundesnormen/NOR12017691/NOR12017691.xml", &mut builder).unwrap();
///
/// let law: Law = builder.into();
@ -223,7 +223,7 @@ mod tests {
let path = format!("{}", config.unwrap().path().display());
println!("Testing {path}");
let (law_id, mut builder, parser) = Config::load(&path).unwrap();
let (_, law_id, mut builder, parser) = Config::load(&path).unwrap();
let paragraph_path = format!("./data/expected/overview/{law_id}");
let expected_path = format!("./data/expected/par/{law_id}");