Skip to content

Commit b52e70d

Browse files
Test vector renames
1 parent 8f6a0fa commit b52e70d

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

wasm/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm/src/account/signature.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ mod tests {
220220

221221
use crate::utilities::test::{
222222
plaintext::{INVALID_NESTED_STRUCT, NESTED_STRUCT},
223-
record::{CREDITS_RECORD, INVALID_CREDITS_RECORD},
223+
records::{VALID_CREDITS_RECORD, INVALID_CREDITS_RECORD},
224224
};
225225
use rand::{Rng, SeedableRng, rngs::StdRng};
226226
use wasm_bindgen_test::*;
@@ -521,8 +521,8 @@ mod tests {
521521

522522
#[wasm_bindgen_test]
523523
pub fn test_sign_record_and_verify() {
524-
let signature = Signature::sign_value(&PrivateKey::new(), CREDITS_RECORD).unwrap();
525-
assert!(signature.verify_value(&signature.to_address(), CREDITS_RECORD).unwrap());
524+
let signature = Signature::sign_value(&PrivateKey::new(), VALID_CREDITS_RECORD).unwrap();
525+
assert!(signature.verify_value(&signature.to_address(), VALID_CREDITS_RECORD).unwrap());
526526
assert!(!signature.verify_value(&signature.to_address(), INVALID_CREDITS_RECORD).unwrap());
527527
}
528528

wasm/src/record/record_plaintext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ mod tests {
337337
utilities::test::get_env,
338338
};
339339

340-
use crate::utilities::test::record::{CREDITS_RECORD_V1, CREDITS_SENDER_CIPHERTEXT, CREDITS_SENDER_PLAINTEXT};
340+
use crate::utilities::test::records::{CREDITS_RECORD_V1, CREDITS_SENDER_CIPHERTEXT, CREDITS_SENDER_PLAINTEXT};
341341
use wasm_bindgen_test::*;
342342

343343
const CREDITS_RECORD: &str = r"{

wasm/src/utilities/encrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ mod tests {
301301
use crate::{
302302
test::get_env,
303303
types::native::{PrivateKeyNative, ViewKeyNative},
304-
utilities::test::record::{
304+
utilities::test::records::{
305305
CREDITS_RECORD_V1,
306306
CREDITS_RECORD_VIEW_KEY,
307307
CREDITS_SENDER_CIPHERTEXT,

wasm/src/utilities/test/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ pub use plaintext::*;
2323
pub mod programs;
2424
pub use programs::*;
2525

26-
pub mod record;
27-
pub use record::*;
26+
pub mod records;
27+
pub use records::*;
2828

2929
pub mod uri;
3030
pub use uri::*;

wasm/src/utilities/test/record.rs renamed to wasm/src/utilities/test/records.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub const TOKEN_REGISTRY_RECORD_V1: &str = r#"{
4040
}"#;
4141

4242
/// Valid credits.aleo record for testing.
43-
pub const CREDITS_RECORD: &str = r"{
43+
pub const VALID_CREDITS_RECORD: &str = r"{
4444
owner: aleo1j7qxyunfldj2lp8hsvy7mw5k8zaqgjfyr72x2gh3x4ewgae8v5gscf5jh3.private,
4545
microcredits: 1500000000000000u64.private,
4646
_nonce: 3077450429259593211617823051143573281856129402760267155982965992208217472983group.public,

0 commit comments

Comments
 (0)