mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fix AddonExecutionResult monoid identity
This commit is contained in:
@ -136,4 +136,15 @@ class AddonExecutorTest extends CatsEffectSuite with Fixtures with TestLoggingCo
|
||||
assertEquals(res.addonResults(1), AddonResult.success(testOut2))
|
||||
}
|
||||
}
|
||||
|
||||
test("AddonExecutionResult's monoid") {
|
||||
assert(
|
||||
AddonExecutionResult.executionResultMonoid
|
||||
.combine(
|
||||
AddonExecutionResult.empty,
|
||||
AddonExecutionResult(Nil, true)
|
||||
)
|
||||
.pure
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user