-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add modifyOutput function to TestFormula.
- Loading branch information
Showing
4 changed files
with
131 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
formula-test/src/test/java/com/instacart/formula/test/SimpleFormula.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.instacart.formula.test | ||
|
||
import com.instacart.formula.IFormula | ||
import com.instacart.formula.test.SimpleFormula.Input | ||
import com.instacart.formula.test.SimpleFormula.Output | ||
|
||
interface SimpleFormula : IFormula<Input, Output> { | ||
data class Input(val inputId: String = "inputId") | ||
data class Output(val outputId: Int, val text: String) | ||
|
||
override fun key(input: Input): Any? = "simple-formula-key" | ||
} | ||
|
||
class TestSimpleFormula( | ||
private val initialOutput: Output = Output( | ||
outputId = 0, | ||
text = "", | ||
) | ||
) : SimpleFormula { | ||
override val implementation = testFormula( | ||
initialOutput = initialOutput, | ||
) | ||
} |
72 changes: 0 additions & 72 deletions
72
formula-test/src/test/java/com/instacart/formula/test/TestFormulaRobot.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters