Fix snapshotCount argument.
This commit is contained in:
parent
3d235ad722
commit
a2f308c6b4
@ -362,7 +362,7 @@ object Generators {
|
||||
fun <T> single(item: T): Generator<T> = Generators.list(item)
|
||||
|
||||
fun <T> permutation(snapshotCount: Int = -1, shuffled: Boolean = false, init: PermutationScope.() -> Unit): Generator<T> {
|
||||
val snapshots = permuteSingle<T> { init() }
|
||||
val snapshots = permuteSingle<T>(snapshotCount) { init() }
|
||||
return if (shuffled) {
|
||||
ListGenerator(snapshots.seededShuffled())
|
||||
} else {
|
||||
|
||||
Binary file not shown.
@ -140,7 +140,7 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -140,13 +140,13 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
},
|
||||
Reaction {
|
||||
authorId = 4
|
||||
emoji = "👍"
|
||||
sentTimestamp = 1705678368450
|
||||
sentTimestamp = 1712902138972
|
||||
sortOrder = 2
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -140,7 +140,7 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -140,13 +140,13 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
},
|
||||
Reaction {
|
||||
authorId = 4
|
||||
emoji = "👍"
|
||||
sentTimestamp = 1705678368450
|
||||
sentTimestamp = 1712902138972
|
||||
sortOrder = 2
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -141,7 +141,7 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -141,13 +141,13 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
},
|
||||
Reaction {
|
||||
authorId = 4
|
||||
emoji = "👍"
|
||||
sentTimestamp = 1705678368450
|
||||
sentTimestamp = 1712902138972
|
||||
sortOrder = 2
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -141,7 +141,7 @@ Frame {
|
||||
Reaction {
|
||||
authorId = 1
|
||||
emoji = "💀"
|
||||
sentTimestamp = 1705678368449
|
||||
sentTimestamp = 1712902138971
|
||||
sortOrder = 1
|
||||
}
|
||||
]
|
||||
|
||||
Binary file not shown.
@ -138,7 +138,6 @@ Frame {
|
||||
incoming = IncomingMessageDetails {
|
||||
dateReceived = 1833527071182
|
||||
dateServerSent = 1833527071191
|
||||
read = true
|
||||
}
|
||||
revisions = [
|
||||
ChatItem {
|
||||
@ -158,7 +157,7 @@ Frame {
|
||||
]
|
||||
standardMessage = StandardMessage {
|
||||
text = Text {
|
||||
body = "interpretaris aliquid"
|
||||
body = "an pretium"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -138,6 +138,7 @@ Frame {
|
||||
incoming = IncomingMessageDetails {
|
||||
dateReceived = 1695248715429
|
||||
dateServerSent = 1695248715438
|
||||
read = true
|
||||
sealedSender = true
|
||||
}
|
||||
revisions = [
|
||||
@ -188,7 +189,7 @@ Frame {
|
||||
]
|
||||
standardMessage = StandardMessage {
|
||||
text = Text {
|
||||
body = "definitiones volutpat sagittis natoque utinam tota repudiandae brute"
|
||||
body = "reprehendunt quisque sociis dolor pertinacia populo ferri"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -138,7 +138,6 @@ Frame {
|
||||
incoming = IncomingMessageDetails {
|
||||
dateReceived = 1833527071182
|
||||
dateServerSent = 1833527071191
|
||||
read = true
|
||||
}
|
||||
revisions = [
|
||||
ChatItem {
|
||||
@ -158,7 +157,7 @@ Frame {
|
||||
]
|
||||
standardMessage = StandardMessage {
|
||||
text = Text {
|
||||
body = "unum utinam sapien tristique sale quaerendum disputationi quaeque"
|
||||
body = "ridens tamquam himenaeos laoreet"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user