From 42d9786a6da6b7d83a09d7a329524ffc6aa875b0 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Fri, 8 Aug 2025 09:09:23 +0200 Subject: test(warden): display impl --- lib/warden-core/src/iso20022.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/warden-core') diff --git a/lib/warden-core/src/iso20022.rs b/lib/warden-core/src/iso20022.rs index e9e4a24..78365a9 100644 --- a/lib/warden-core/src/iso20022.rs +++ b/lib/warden-core/src/iso20022.rs @@ -30,3 +30,20 @@ pub mod pacs008 { pub mod pacs002 { tonic::include_proto!("iso20022.pacs002"); } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn display_pacs008() { + let t = TransactionType::PACS008; + assert_eq!(t.to_string(), "pacs.008.001.12"); + } + + #[test] + fn display_pacs002() { + let t = TransactionType::PACS002; + assert_eq!(t.to_string(), "pacs.002.001.12"); + } +} -- cgit v1.2.3