Skip to content

Commit

Permalink
chore: add test for lud01 (even thought it's redundant)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsunsi committed Dec 6, 2023
1 parent 9f426fd commit 1299a8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/lud01.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#[test]
fn test() {
let input = "LNURL1DP68GURN8GHJ7UM9WFMXJCM99E3K7MF0V9CXJ0M385EKVCENXC6R2C35XVUKXEFCV5MKVV34X5EKZD3EV56NYD3HXQURZEPEXEJXXEPNXSCRVWFNV9NXZCN9XQ6XYEFHVGCXXCMYXYMNSERXFQ5FNS";
let decoded = "https://service.com/api?q=3fc3645b439ce8e7f2553a69e5267081d96dcd340693afabe04be7b0ccd178df";

assert_eq!(lnurlkit::resolve(input).unwrap().to_string(), decoded);
assert_eq!(
lnurlkit::resolve(&input.to_lowercase())
.unwrap()
.to_string(),
decoded
);
}

0 comments on commit 1299a8b

Please sign in to comment.