@@ -56,29 +56,29 @@ class MirrorVariantsSpec extends AnyWordSpec with Matchers {
5656
5757 " produce expected results for TLA network crossings" in {
5858 implicit val context = RuleTransducer .Context (resolve, preprocess = MirrorVariants .preprocessor)
59- RuleTransducer (Tla3 ~ WE | (Road ~> Tla3 )~ WE & Rail ~ ES ).toSeq shouldBe Seq (
59+ RuleTransducer (Tla3 ~ WE | (Road ~> Tla3 )~ WE & Rail ~ ES ).toSeq should contain theSameElementsAs Seq (
6060 Rule (0x51000000 ,1 ,0 , 0x03010200 ,1 ,0 , 0x51000000 ,1 ,0 , 0x51005500 ,3 ,0 ),
6161 Rule (0x51000000 ,3 ,0 , 0x03010200 ,1 ,0 , 0x51000000 ,3 ,0 , 0x51005500 ,3 ,0 ),
6262 Rule (0x51000000 ,3 ,0 , 0x03020500 ,3 ,1 , 0x51000000 ,3 ,0 , 0x51005500 ,1 ,1 ),
6363 Rule (0x51000000 ,1 ,0 , 0x03020500 ,3 ,1 , 0x51000000 ,1 ,0 , 0x51005500 ,1 ,1 ))
64- RuleTransducer (Tla5 ~ WE | (Road ~> Tla5 )~ WE & Rail ~ ES ).toSeq shouldBe Seq (
64+ RuleTransducer (Tla5 ~ WE | (Road ~> Tla5 )~ WE & Rail ~ ES ).toSeq should contain theSameElementsAs Seq (
6565 Rule (0x51100000 ,3 ,0 , 0x03010200 ,1 ,0 , 0x51100000 ,3 ,0 , 0x51105500 ,3 ,0 ),
6666 Rule (0x51100000 ,1 ,0 , 0x03020500 ,3 ,1 , 0x51100000 ,1 ,0 , 0x51105500 ,1 ,1 ))
67- RuleTransducer (Tla5 ~ WE | (Road ~> Tla5 )~ WE & Road ~ ES ).toSeq shouldBe Seq (
67+ RuleTransducer (Tla5 ~ WE | (Road ~> Tla5 )~ WE & Road ~ ES ).toSeq should contain theSameElementsAs Seq (
6868 Rule (0x51100000 ,3 ,0 , 0x00003900 ,1 ,0 , 0x51100000 ,3 ,0 , 0x51105100 ,3 ,0 ),
6969 Rule (0x51100000 ,1 ,0 , 0x00003900 ,3 ,1 , 0x51100000 ,1 ,0 , 0x71105100 ,1 ,1 )) // 0x71... variant
70- RuleTransducer (Tla3 ~ WE | (Road ~> Tla3 )~ WE & Lightrail ~ ES ).toSeq shouldBe Seq (
70+ RuleTransducer (Tla3 ~ WE | (Road ~> Tla3 )~ WE & Lightrail ~ ES ).toSeq should contain theSameElementsAs Seq (
7171 Rule (0x51000000 ,1 ,0 , 0x08DD1600 ,1 ,1 , 0x51000000 ,1 ,0 , 0x51005600 ,3 ,0 ),
7272 Rule (0x51000000 ,3 ,0 , 0x08DD1600 ,1 ,1 , 0x51000000 ,3 ,0 , 0x51005600 ,3 ,0 ),
7373 Rule (0x51000000 ,3 ,0 , 0x08DD1600 ,3 ,0 , 0x51000000 ,3 ,0 , 0x51005600 ,1 ,1 ),
7474 Rule (0x51000000 ,1 ,0 , 0x08DD1600 ,3 ,0 , 0x51000000 ,1 ,0 , 0x51005600 ,1 ,1 ))
75- RuleTransducer (Tla5 ~ EW | (Avenue ~> Tla5 )~ EW & Avenue ~ NS ).toSet shouldBe Set (
75+ RuleTransducer (Tla5 ~ EW | (Avenue ~> Tla5 )~ EW & Avenue ~ NS ).toSeq should contain theSameElementsAs Seq (
7676 Rule (0x51100000 ,3 ,0 , 0x04009000 ,0 ,0 , 0x51100000 ,3 ,0 , 0x71101300 ,2 ,1 ),
7777 Rule (0x51100000 ,1 ,0 , 0x04009000 ,1 ,0 , 0x51100000 ,1 ,0 , 0x51101300 ,0 ,0 ))
78- RuleTransducer (Tla5 ~ EW & Avenue ~ NS | (Avenue ~> Tla5 )~ EW & Avenue ~ SN ).toSet shouldBe Set (
78+ RuleTransducer (Tla5 ~ EW & Avenue ~ NS | (Avenue ~> Tla5 )~ EW & Avenue ~ SN ).toSeq should contain theSameElementsAs Seq (
7979 Rule (0x71101300 ,2 ,1 , 0x04009000 ,3 ,0 , 0x71101300 ,2 ,1 , 0x51101300 ,2 ,0 ),
8080 Rule (0x51101300 ,0 ,0 , 0x04009000 ,2 ,0 , 0x51101300 ,0 ,0 , 0x71101300 ,0 ,1 ))
81- RuleTransducer (Tla5 ~ EW & Avenue ~ SN | (Avenue ~> Tla5 )~ EW ).toSet shouldBe Set (
81+ RuleTransducer (Tla5 ~ EW & Avenue ~ SN | (Avenue ~> Tla5 )~ EW ).toSeq should contain theSameElementsAs Seq (
8282 Rule (0x51101300 ,2 ,0 , 0x04006100 ,3 ,0 , 0x51101300 ,2 ,0 , 0x51100000 ,3 ,0 ),
8383 Rule (0x71101300 ,0 ,1 , 0x04006100 ,1 ,0 , 0x71101300 ,0 ,1 , 0x51100000 ,1 ,0 ))
8484 }
0 commit comments