Skip to content

Commit a9406e3

Browse files
committed
Eliminated long lines
1 parent e26e5b0 commit a9406e3

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

src/test/inimitable.Tests.scala

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,59 +31,56 @@ object Tests extends Suite(t"Inimitable Tests"):
3131
Uuid()
3232
.matches:
3333
case Uuid(a, b) => (a, b)
34-
34+
3535
test(t"Get bytes from UUID"):
3636
Uuid().bytes
3737
.assert(_.length == 16)
3838

3939
test(t"Parse a UUID at compiletime"):
4040
uuid"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c"
4141
.assert()
42-
42+
4343
test(t"Get the most significant bits from a UUID"):
4444
uuid"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c".msb
4545
.assert(_ == -6860364383762101208L)
46-
46+
4747
test(t"Get the least significant bits from a UUID"):
4848
uuid"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c".lsb
4949
.assert(_ == -8777588922722300788L)
50-
50+
5151
test(t"Get the Java UUID"):
5252
uuid"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c".java
5353
.assert(_ == java.util.UUID.fromString("a0cb16f0-d41e-4c28-862f-bd6164bbcc8c"))
54-
54+
5555
test(t"Get the bytes from a UUID"):
5656
uuid"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c".bytes.to(List)
5757
.assert(_ == List[Byte](-96, -53, 22, -16, -44, 30, 76, 40, -122, 47, -67, 97, 100, -69, -52, -116))
58-
58+
5959
test(t"Convert a UUID to Text"):
6060
uuid"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c".text
6161
.assert(_ == t"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c")
62-
62+
6363
test(t"Parse a UUID at runtime"):
6464
unsafely(Uuid.parse(t"a0cb16f0-d41e-4c28-862f-bd6164bbcc8c"))
6565
.assert(_ == Uuid(-6860364383762101208L, -8777588922722300788L))
66-
66+
6767
test(t"Parse a bad UUID at runtime"):
6868
unsafely(capture[UuidError](Uuid.parse(t"not-a-uuid")))
6969
.assert(_ == UuidError(t"not-a-uuid"))
70-
70+
7171
val uuid1 = Uuid()
7272
val uuid2 = Uuid()
73-
73+
7474
test(t"XOR two UUIDs"):
7575
uuid1 ^ uuid2
7676
.assert { uuid => uuid != uuid1 && uuid != uuid2 }
77-
77+
7878
test(t"Invert a UUID"):
7979
~uuid1
8080
.assert(_ != uuid1)
81-
81+
8282
test(t"Parse a bad UUID at compiletime"):
8383
demilitarize:
8484
uuid"not-a-uuid"
8585
.map(_.message)
8686
.assert(_ == List(t"inimitable: not-a-uuid is not a valid UUID"))
87-
88-
89-

0 commit comments

Comments
 (0)