Ignore a test that isn't working as it's supposed to.

The test substructuralTS_indirectResourceDependency is not doing what it's intended
to be doing b/c of apparenly wrongly understood contract of the `also()` method.
It is not supposed to pass the result of the computation to the "chained" method.

Compare `T.also(block: (T) -> Unit): T` and `T.let(block: (T) -> R): R`.

After having fixed the code, the test no longer passes.
This commit is contained in:
Fedor Isakov 2020-08-05 18:02:38 +02:00
parent 6348afaee5
commit d619fdf31b
1 changed files with 3 additions and 2 deletions

View File

@ -1807,6 +1807,7 @@ class TestIncrementalProgram {
@Test
@Ignore("Test is broken")
fun substructuralTS_indirectResourceDependency() {
/* Expected test program execution:
Write of resource2 depends on write of resource1
@ -1878,14 +1879,14 @@ class TestIncrementalProgram {
result.storeView().constraintSymbols() shouldBe setOf(sym0("hasWrite2"), sym0("read2"))
}.also { (builder, evalRes) ->
}.let { (builder, evalRes) ->
builder
.insertRulesAt(1, doConsumeRuleBuilder)
.relaunch("consume resource1 before anyone", progSpec, evalRes.token()) { result ->
result.storeView().constraintSymbols() shouldBe setOf(sym0("resource2"), sym0("hasRead2"))
}
}.also { (builder, evalRes) ->
}.let { (builder, evalRes) ->
builder
.removeRules(listOf("Consume1"))
.relaunch("as initial run", progSpec, evalRes.token()) { result ->