julian
02/04/2023, 9:41 PMcheckAll
, or something like it, but when more than 12 values need to be generated at once?sam
02/04/2023, 9:43 PMEmil Kantis
02/04/2023, 9:46 PMdata class Fixture(a: Int, b: String // etc)
checkAll(Arb.bind<Fixture>(), [other arbs]) { (a, b), [ other values] ->
}
julian
02/04/2023, 9:49 PMMake a PR to add 13, 14, etc 😛If it won't be rejected on principle alone, I will. Just wouldn't want to do a bunch of work that's rejected for reasons other than implementation choices.
sam
02/04/2023, 9:50 PMjulian
02/04/2023, 9:50 PMjulian
02/04/2023, 9:50 PMjulian
02/04/2023, 9:51 PMsam
02/04/2023, 9:51 PMsam
02/04/2023, 9:51 PMjulian
02/04/2023, 9:52 PMjulian
02/04/2023, 9:59 PMsam
02/04/2023, 10:01 PMsam
02/04/2023, 10:01 PMjulian
02/04/2023, 10:02 PMsam
02/04/2023, 10:04 PMjulian
02/04/2023, 10:05 PMAdam S
02/04/2023, 10:29 PMcheckAll()
is loading, which I suspect is related to the large amount of overloads that have lots of generics. Can you make sure that the performance is okay when you try increasing it please?Emil Kantis
02/04/2023, 10:53 PMsam
02/04/2023, 10:53 PMjulian
02/04/2023, 10:56 PMCan you make sure that the performance is okay when you try increasing it please?@Adam S Do you have suggestions how to do this? What's the standard to compare to? @sam Could this be a limit on going to 22-arity?
sam
02/04/2023, 10:57 PMsuspend fun <A, B> forAll(
config: PropTestConfig = PropTestConfig(),
genA: Gen<A>,
genB: Gen<B>,
property: suspend PropertyContext.(A, B) -> Boolean
)
sam
02/04/2023, 10:58 PMsuspend fun <A, B> forAll(
iterations: Int,
genA: Gen<A>,
genB: Gen<B>,
property: suspend PropertyContext.(A, B) -> Boolean
)
sam
02/04/2023, 10:58 PMsuspend inline fun <reified A, reified B> forAll(
crossinline property: PropertyContext.(A, B) -> Boolean
)
sam
02/04/2023, 10:58 PMjulian
02/04/2023, 11:21 PMsam
02/04/2023, 11:22 PMjulian
02/04/2023, 11:25 PMsuspend inline fun <reified A, reified B, reified C, reified D, reified E, reified F, reified G, reified H, reified I, reified J, reified K, reified L, reified M> checkAll(
noinline property: suspend PropertyContext.(A, B, C, D, E, F, G, H, I, J, K, L, M) -> Unit
)
julian
02/04/2023, 11:38 PMsam
02/05/2023, 12:30 AMjulian
02/05/2023, 12:31 AMjulian
02/07/2023, 6:38 PMCheckAllExhaustivesIterationTest
, PropTestConfigConstraintsTest
, and ForAllExhaustivesIterationTest
, that I need to add tests to. Any others you know of? Thanks!sam
02/07/2023, 7:08 PM