allow specifying applications, preparation to also add 'landesgesetze'
All checks were successful
CI/CD Pipeline / test (push) Successful in 3m3s
All checks were successful
CI/CD Pipeline / test (push) Successful in 3m3s
This commit is contained in:
@ -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}");
|
||||
|
Reference in New Issue
Block a user