Skip to content

Commit

Permalink
fix: modifed some errors arised beacuse of typos and modified the nam…
Browse files Browse the repository at this point in the history
…e of the functions

Signed-off-by: Abinand P <[email protected]>
  • Loading branch information
Abiji-2020 committed Oct 19, 2024
1 parent 1837223 commit 0f143ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/proof-of-sql/src/base/encode/scalar_varint_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fn big_additive_inverses_that_are_smaller_than_the_input_scalars_are_correctly_e
}

#[test]
fn valid_varint_encoded_input_that_map_to_curve25519_scalars_smaller_than_the_p_field_order_in_the_read_scalar_will_not_wrap_around_p(
fn valid_varint_encoded_input_that_map_to_test_scalars_smaller_than_the_p_field_order_in_the_read_scalar_will_not_wrap_around_p(
) {
let mut buf = [0b1111_1111_u8; 36];

Expand All @@ -204,7 +204,7 @@ fn valid_varint_encoded_input_that_map_to_curve25519_scalars_smaller_than_the_p_
}

#[test]
fn valid_varint_encoded_input_that_map_to_curve25519_scalars_bigger_than_the_p_field_order_in_the_read_scalar_will_wrap_around_p(
fn valid_varint_encoded_input_that_map_to_test_scalars_bigger_than_the_p_field_order_in_the_read_scalar_will_wrap_around_p(
) {
let mut buf = [0b1111_1111_u8; 37];

Expand Down
6 changes: 3 additions & 3 deletions crates/proof-of-sql/src/base/encode/varint_trait_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::VarInt;
use crate::base::scalar::{test_scalar::TestScalar, Scalar};
use crate::base::scalar::{ Scalar, test_scalar::TestScalar};
use alloc::{vec, vec::Vec};
use core::{
fmt::Debug,
Expand Down Expand Up @@ -398,12 +398,12 @@ fn we_can_encode_and_decode_small_u128_values() {
}

#[test]
fn we_can_encode_and_decode_small_curve25519_scalar_values() {
fn we_can_encode_and_decode_small_test_scalar_values() {
test_small_signed_values_encode_and_decode_properly::<TestScalar>(TestScalar::ONE);
}

#[test]
fn we_can_encode_and_decode_i128_and_curve25519_scalar_the_same() {
fn we_can_encode_and_decode_i128_and_test_scalar_the_same() {
let mut rng = rand::thread_rng();
test_encode_and_decode_types_align::<i128, TestScalar>(
&rng.gen::<[_; 32]>(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::*;
use crate::base::scalar::test_scalar::TestScalar
use crate::base::scalar::test_scalar::TestScalar;

#[test]
fn test_mul_add_assign() {
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-of-sql/src/base/slice_ops/slice_cast_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::*;
use crate::base::scalar::Curve25519Scalar;
use create::base::scalar::test_scalar::TestScalar;
use crate::base::scalar::test_scalar::TestScalar;
use curve25519_dalek::scalar::Scalar;

#[test]
Expand Down

0 comments on commit 0f143ab

Please sign in to comment.