@@ -29,39 +29,39 @@ suite = do
29
29
-- |
30
30
-- | = [],[1],[1],[]. { [] encodes empty sets of pre- and post places }
31
31
-- | \____/ \____/
32
- -- | x y
32
+ -- | t u
33
33
-- | _ _
34
- -- | = [_]->(1)->[_] { x,y are transitions labeled by the 'names' field }
35
- -- | x y
34
+ -- | = [_]->(1)->[_] { t,u are transitions labeled by the 'names' field }
35
+ -- | t u
36
36
-- | ```
37
37
-- |
38
- -- | We label this net as 's ' and 't ', and glue it together into s&t :
38
+ -- | We label this net as 'n ' and 'm ', and glue it together into n&m :
39
39
-- |
40
40
-- | ```
41
- -- | s = t =
41
+ -- | n = m =
42
42
-- | _ _ _ _
43
43
-- | |_|-(1)-|_| |_|-(1)-|_|
44
- -- | x y x y
44
+ -- | t u t u
45
45
-- |
46
46
-- | | | \_______/ | |
47
47
-- | | | | | |
48
48
-- | V V V V V
49
49
-- | _ _________ _
50
50
-- | |_|-(1)-|_________|-(1)-|_|
51
- -- | s.x s .1 x&y t .1 t.y
51
+ -- | n.t n .1 u&t m .1 m.u
52
52
-- | ```
53
53
wiring :: Wiring
54
54
wiring =
55
55
{ nets: [ { name: " a"
56
56
, partition: [0 ,1 ,0 ,1 ,0 ,0 ]
57
- , names: [" x " ," y " ]
57
+ , names: [" t " ," u " ]
58
58
-- , placeNames: Nothing
59
59
}
60
60
]
61
61
, diagrams: [ { name: " z"
62
62
, width: 1
63
63
, pixels: [1 ,2 ]
64
- , names: [" s " ," t " ]
64
+ , names: [" m " ," n " ]
65
65
}
66
66
]
67
67
, labels: [0 ,0 ]
@@ -91,9 +91,9 @@ suite = do
91
91
firing1 = spy " firing 1" $ fromGluedTransition2JS <$> Stbx .getFiring s0 (GluedTransitionId 1 )
92
92
firing2 = spy " firing 2" $ fromGluedTransition2JS <$> Stbx .getFiring s0 (GluedTransitionId 2 )
93
93
94
- firing2 `shouldEqual` Just { pre: [ [ 1 ], [] ], post: " y " }
95
- firing1 `shouldEqual` Just { pre: [ [ 1 ], [ 1 ] ], post: " y&x " }
96
- firing0 `shouldEqual` Just { pre: [ [] , [ 1 ] ], post: " x " }
94
+ firing2 `shouldEqual` Just { pre: [ [ 1 ], [] ], post: " u " }
95
+ firing1 `shouldEqual` Just { pre: [ [ 1 ], [ 1 ] ], post: " u&t " }
96
+ firing0 `shouldEqual` Just { pre: [ [] , [ 1 ] ], post: " t " }
97
97
98
98
it " should be well-behaved at non-existing transitions" do
99
99
let
0 commit comments