app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit 055ea7374b4b29e5c29c3f93a987b8990e4fa807
parent dcc0116046c9fa18c49cfe89ba09aa352708416f
Author: triesap <tyson@radroots.org>
Date:   Sun, 22 Mar 2026 15:01:25 +0000

ios: migrate tests to approved fixtures

Diffstat:
Mcrates/ios/Cargo.toml | 3+++
Mcrates/ios/src/lib.rs | 6++++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/crates/ios/Cargo.toml b/crates/ios/Cargo.toml @@ -26,3 +26,6 @@ zeroize.workspace = true [target.'cfg(target_os = "ios")'.dependencies] wgpu = { workspace = true, features = ["metal", "wgsl"] } + +[dev-dependencies] +radroots-app-test-support = { path = "../test-support" } diff --git a/crates/ios/src/lib.rs b/crates/ios/src/lib.rs @@ -491,6 +491,7 @@ pub extern "C" fn radroots_ios_run() -> i32 { #[cfg(test)] mod tests { use super::*; + use radroots_app_test_support::FIXTURE_ALICE; use radroots_nostr_accounts::prelude::RadrootsNostrAccountsManager; #[test] @@ -608,10 +609,11 @@ mod tests { #[test] fn normalize_clipboard_secret_key_text_trims_wrapping_whitespace() { - let normalized = IosBackend::normalize_clipboard_secret_key_text(" nsec1example \n") + let clipboard_text = format!(" {} \n", FIXTURE_ALICE.nsec); + let normalized = IosBackend::normalize_clipboard_secret_key_text(clipboard_text.as_str()) .expect("normalize secret key"); - assert_eq!(normalized, "nsec1example"); + assert_eq!(normalized, FIXTURE_ALICE.nsec); } #[test]