mirror of
https://github.com/pcvolkmer/bzkf-rwdp-check.git
synced 2025-04-19 19:16:51 +00:00
test: add test for Meldung#id()
This commit is contained in:
parent
a905a816f5
commit
aa1ec6c114
@ -174,6 +174,24 @@ mod tests {
|
||||
assert_eq!(patients[1].meldungen().len(), 1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_get_meldung_id() {
|
||||
let actual = LkrExportProtocolFile::parse(include_str!("../testdaten/testdaten_1.xml"));
|
||||
|
||||
assert!(actual.is_ok());
|
||||
|
||||
let patients = actual.unwrap().patients;
|
||||
|
||||
assert_eq!(
|
||||
patients[0].meldungen()[0].id(),
|
||||
Some("TEST1727528".to_string())
|
||||
);
|
||||
assert_eq!(
|
||||
patients[1].meldungen()[0].id(),
|
||||
Some("001A5D50-TEST".to_string())
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_get_meldung_database_id() {
|
||||
let actual = LkrExportProtocolFile::parse(include_str!("../testdaten/testdaten_1.xml"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user