diff options
author | vlad <vlad@driver.xyz> | 2017-06-29 20:19:30 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-06-29 20:19:30 -0700 |
commit | 5013a7fde52e4459c12ff5e92793cad9fc2f23db (patch) | |
tree | 00be653526aac5b20ec528204b5dda4153becbfb /src/test/scala/xyz/driver/core/GeneratorsTest.scala | |
parent | 0e6a5d1dbaf02192cc5ad5ff6edbb793dc6a1287 (diff) | |
parent | e41050b75308aab2736eea11b67bf9387a90dfe5 (diff) | |
download | driver-core-5013a7fde52e4459c12ff5e92793cad9fc2f23db.tar.gz driver-core-5013a7fde52e4459c12ff5e92793cad9fc2f23db.tar.bz2 driver-core-5013a7fde52e4459c12ff5e92793cad9fc2f23db.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/test/scala/xyz/driver/core/GeneratorsTest.scala')
-rw-r--r-- | src/test/scala/xyz/driver/core/GeneratorsTest.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/xyz/driver/core/GeneratorsTest.scala b/src/test/scala/xyz/driver/core/GeneratorsTest.scala index 4ec73ec..737cbcb 100644 --- a/src/test/scala/xyz/driver/core/GeneratorsTest.scala +++ b/src/test/scala/xyz/driver/core/GeneratorsTest.scala @@ -212,19 +212,19 @@ class GeneratorsTest extends FlatSpec with Matchers with Assertions { it should "be able to generate maps with keys and values generated by generators" in { - val generatedConstantMap = mapOf(10, "key", 123) + val generatedConstantMap = mapOf("key", 123, 10) generatedConstantMap.size should be <= 1 assert(generatedConstantMap.keys.forall(_ == "key")) assert(generatedConstantMap.values.forall(_ == 123)) - val generatedMap = mapOf(10, nextString(10), nextBigDecimal()) + val generatedMap = mapOf(nextString(10), nextBigDecimal(), 10) assert(generatedMap.keys.forall(_.length <= 10)) assert(generatedMap.values.forall(_ >= BigDecimal(0.00))) } it should "compose deeply" in { - val generatedNestedMap = mapOf(10, nextString(10), nextPair(nextBigDecimal(), nextOption(123))) + val generatedNestedMap = mapOf(nextString(10), nextPair(nextBigDecimal(), nextOption(123)), 10) generatedNestedMap.size should be <= 10 generatedNestedMap.keySet.size should be <= 10 |