Skip to content

Commit

Permalink
test(loading): fix broken assertion in TestConstructorOverloading
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Nov 11, 2024
1 parent 9ab596c commit 28b4276
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
package it.unibo.alchemist.test

import another.location.MyTestEnv
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.nulls.beNull
import io.kotest.matchers.shouldBe
import io.kotest.matchers.nulls.shouldNotBeNull
import io.kotest.matchers.shouldNot
import io.kotest.matchers.types.instanceOf
import it.unibo.alchemist.test.AlchemistTesting.loadAlchemistFromResource

class TestConstructorOverloading : StringSpec({
"constructor overloading should not be ambiguous during loading" {
val loader = loadAlchemistFromResource("regression/2024-depots-ambiguous-constructors.yml")
loader shouldNot beNull()
loader.getDefault<Nothing, Nothing>().environment shouldBe instanceOf(MyTestEnv::class)
loader.getDefault<Nothing, Nothing>().environment.shouldNotBeNull()
}
})

0 comments on commit 28b4276

Please sign in to comment.