diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-08 09:09:23 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-08 09:09:23 +0200 |
commit | 42d9786a6da6b7d83a09d7a329524ffc6aa875b0 (patch) | |
tree | 84e38fa8e456b7ef28dc43bc13fd41eebc9ff40c | |
parent | 7e03c0c7a30dca90e90a32918e3008c34d9f25cc (diff) | |
download | warden-42d9786a6da6b7d83a09d7a329524ffc6aa875b0.tar.bz2 warden-42d9786a6da6b7d83a09d7a329524ffc6aa875b0.zip |
test(warden): display impl
-rw-r--r-- | lib/warden-core/src/iso20022.rs | 17 |
1 files changed, 17 insertions, 0 deletions
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"); + } +} |