Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperoman committed Aug 21, 2023
1 parent 28c7ac4 commit 5e1fcc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/scala/sqids/BlocklistSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final class BlocklistSuite extends ScalaCheckSuite {
incrementalBlockList
)
assertEquals(sqids.encodeUnsafeString(1, 2, 3), "TM0x1Mxz")
assertEquals(sqids.decode("TM0x1Mxz"), List(1, 2, 3));
assertEquals(sqids.decode("TM0x1Mxz"), List(1, 2, 3))
}

test("decoding blocklist words should still work") {
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/sqids/SqidsSuite_encoding.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import org.scalacheck.Gen
final class SqidsSuite_encoding extends ScalaCheckSuite {
val sqids = Sqids.default
test("simple") {
val numbers = List(1, 2, 3);
val id = "8QRLaD";
val numbers = List(1, 2, 3)
val id = "8QRLaD"
assertEquals(sqids.encodeUnsafeString(numbers: _*), id)
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/sqids/SqidsSuite_minLength.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class SqidsSuite_minLength extends ScalaCheckSuite {
val sqids = SqidsOptions.default.withMinLength(SqidsOptions.default.alphabet.length).map(Sqids.apply)
sqids.foreach { sqids =>
test("simple") {
val numbers = List(1, 2, 3);
val numbers = List(1, 2, 3)
val id = "75JILToVsGerOADWmHlY38xvbaNZKQ9wdFS0B6kcMEtnRpgizhjU42qT1cd0dL"
assertEquals(sqids.encodeUnsafeString(numbers: _*), id)
assertEquals(sqids.decode(id), numbers)
Expand Down

0 comments on commit 5e1fcc2

Please sign in to comment.