summaryrefslogtreecommitdiff
path: root/passgen/diceware/src/test
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-05-03 01:48:16 +0530
committerGitHub <noreply@github.com>2022-05-02 20:18:16 +0000
commitc555609f164eb5245eb1cceb3fe22ec1d258ec5d (patch)
tree2a3dd02158fccfff2d92fe9c3ff433758a141076 /passgen/diceware/src/test
parent07a83a33b878791257d1aa2282e71c1d2f301254 (diff)
Misc cleanups (#1891)
Diffstat (limited to 'passgen/diceware/src/test')
-rw-r--r--passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DicewarePassphraseGeneratorTest.kt2
-rw-r--r--passgen/diceware/src/test/kotlin/dev/msfjarvis/aps/passgen/diceware/DieTest.kt8
2 files changed, 5 insertions, 5 deletions
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())
}