test/src/crypto/sr25519/sr25519_provider_test.cpp
TEST_F(SR25519ProviderTest, GenerateKeysNotEqual) {
  for (auto i = 0; i < 10; ++i) {
    auto kp1 = sr25519_provider->generateKeypair();
    auto kp2 = sr25519_provider->generateKeypair();
    ASSERT_NE(kp1.public_key, kp2.public_key);
    ASSERT_NE(kp1.secret_key, kp2.secret_key);
  }
}
/**
 * @given sr25519 provider instance configured with boost random generator
 * @when generate 2 keypairs, repeat it 10 times
 * @then each time keys are different
 */
@given sr25519 provider instance configured with boost random generator
@when generate 2 keypairs, repeat it 10 times
@then each time keys are different
@given sr25519 provider instance configured with boost random generator @when generate 2 keypairs repeat it 10 times @then each time keys are different
TEST_F(SR25519ProviderTest, GenerateKeysNotEqual) {
  for (auto i = 0; i < 10; ++i) {
    auto kp1 = sr25519_provider->generateKeypair();
    auto kp2 = sr25519_provider->generateKeypair();
    ASSERT_NE(kp1.public_key, kp2.public_key);
    ASSERT_NE(kp1.secret_key, kp2.secret_key);
  }
}
TEST_F ( SR25519ProviderTest , GenerateKeysNotEqual ) { for ( auto i = 0 ; i < 10 ; ++ i ) { auto kp1 = sr25519_provider -> generateKeypair ( ) ; auto kp2 = sr25519_provider -> generateKeypair ( ) ; ASSERT_NE ( kp1 . public_key , kp2 . public_key ) ; ASSERT_NE ( kp1 . secret_key , kp2 . secret_key ) ; } }
@given sr25519 provider instance configured with boost random generator
 @when generate 2 keypairs, repeat it 10 times
 @then each time keys are different
@given sr25519 provider instance configured with boost random generator @when generate 2 keypairs repeat it 10 times @then each time keys are different