From c555609f164eb5245eb1cceb3fe22ec1d258ec5d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 3 May 2022 01:48:16 +0530 Subject: Misc cleanups (#1891) --- .../aps/passgen/diceware/DicewarePassphraseGeneratorTest.kt | 2 +- .../src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DieTest.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'passgen/diceware/src') diff --git a/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DicewarePassphraseGeneratorTest.kt b/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DicewarePassphraseGeneratorTest.kt index 7f22fdcc..236be708 100644 --- a/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DicewarePassphraseGeneratorTest.kt +++ b/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DicewarePassphraseGeneratorTest.kt @@ -15,7 +15,7 @@ class DicewarePassphraseGeneratorTest { private val intGenerator = RandomIntGenerator { it.random(random) } @Test - fun generate_passphrase() { + fun generatePassphrase() { val die = Die(6, intGenerator) val generator = diff --git a/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DieTest.kt b/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DieTest.kt index 69a355c5..7f6398f6 100644 --- a/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DieTest.kt +++ b/passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DieTest.kt @@ -17,19 +17,19 @@ class DieTest { private val intGenerator = RandomIntGenerator { it.random(random) } @Test - fun test_one_roll() { + fun oneRoll() { val die = Die(6, intGenerator) assertEquals(5, die.roll()) } @Test - fun test_multiple_rolls() { + fun multipleRolls() { val die = Die(6, intGenerator) assertEquals(526242, die.rollMultiple(6)) } @Test - fun test_consecutive_rolls() { + fun consecutiveRolls() { val die = Die(6, intGenerator) assertEquals(5, die.roll()) assertEquals(2, die.roll()) @@ -40,7 +40,7 @@ class DieTest { } @Test - fun test_100_sides() { + fun hundredSides() { val die = Die(100, intGenerator) assertEquals(67, die.roll()) } -- cgit v1.2.3