package Ġde . gle ex . plt cmd . model . faction Ċ Ċ import Ġio . kot est . core . spec . style . String Spec Ċ import Ġio . kot est . matchers . shouldBe Ċ Ċ class ĠF action Relations Test Ġ: ĠString Spec ({ ĊĊĠĠĠ Ġbefore Test Ġ{ ĊĠĠĠĠĠĠĠ ĠF action Relations . reset () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġf 1 Ġ= ĠF action (" faction Ġ 1 ") ĊĠĠĠ Ġval Ġf 2 Ġ= ĠF action (" faction Ġ 2 ") ĊĠĠĠ Ġval Ġf 3 Ġ= ĠF action (" faction Ġ 1 1 ") ĊĊĠĠĠ Ġ" relation Ġshould Ġbe Ġstored Ġand Ġaccessible Ġin Ġany Ġorder " Ġ{ ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] Ġ= ĠAff iliation . Friendly ĊĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] ĠshouldBe ĠAff iliation . Friendly ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 2 , Ġf 1 ] ĠshouldBe ĠAff iliation . Friendly ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ" set Ġshould Ġbe Ġcumulative " Ġ{ ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] Ġ= ĠAff iliation . Host ile ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 2 , Ġf 1 ] Ġ= ĠAff iliation . Friendly ĊĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] ĠshouldBe ĠAff iliation . Friendly ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 2 , Ġf 1 ] ĠshouldBe ĠAff iliation . Friendly ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ" multiple Ġrelations Ġmust Ġwork " Ġ{ ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] Ġ= ĠAff iliation . Host ile ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 3 ] Ġ= ĠAff iliation . Friendly ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 2 , Ġf 3 ] Ġ= ĠAff iliation . Neutral ĊĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] ĠshouldBe ĠAff iliation . Host ile ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 3 ] ĠshouldBe ĠAff iliation . Friendly ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 2 , Ġf 3 ] ĠshouldBe ĠAff iliation . Neutral ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ" reset Ġshould Ġclear Ġrelations " Ġ{ ĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] Ġ= ĠAff iliation . Host ile ĊĊĠĠĠĠĠĠĠ ĠF action Relations . reset () ĊĊĠĠĠĠĠĠĠ ĠF action Relations [ f 1 , Ġf 2 ] ĠshouldBe ĠAff iliation . Unknown ĊĠĠĠ Ġ} Ċ Ċ }) Ċ