From 8722c930c5598b383d9d88be42fd3dc69459acd6 Mon Sep 17 00:00:00 2001 From: Alexey Kiselev Date: Wed, 21 Feb 2018 13:06:16 +0300 Subject: [PATCH] Generator of invalid alias characters was added --- src/test/scala/com/wavesplatform/TransactionGen.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/scala/com/wavesplatform/TransactionGen.scala b/src/test/scala/com/wavesplatform/TransactionGen.scala index fc50947e6e2..4992668b718 100644 --- a/src/test/scala/com/wavesplatform/TransactionGen.scala +++ b/src/test/scala/com/wavesplatform/TransactionGen.scala @@ -37,9 +37,11 @@ trait TransactionGen extends ScriptGen { val aliasSymbolChar: Gen[Char] = Gen.oneOf('.', '@', '_', '-') + val invalidAliasSymbolChar: Gen[Char] = Gen.oneOf('~', '`', '!', '#', '$', '%', '^', '&', '*', '=', '+') + val aliasAlphabetGen: Gen[Char] = frequency((1, numChar), (1, aliasSymbolChar), (9, alphaLowerChar)) - val invalidAliasAlphabetGen: Gen[Char] = frequency((1, numChar), (1, aliasSymbolChar), (9, alphaUpperChar)) + val invalidAliasAlphabetGen: Gen[Char] = frequency((1, numChar), (3, invalidAliasSymbolChar), (9, alphaUpperChar)) val validAliasStringGen: Gen[String] = for { length <- Gen.chooseNum(Alias.MinLength, Alias.MaxLength)