test/simulation_test.rb in y_petri-2.1.9 vs test/simulation_test.rb in y_petri-2.1.10
- old
+ new
@@ -286,12 +286,12 @@
3 => [2.5, 5.5],
4 => [2.5, 6.5] } )
ds.firing.slice( 1..2 ).series
.must_equal [[1, 1]]
ds.series( firing: [:U2V] )
- .must_equal [[1, 1, 1, 1, 1, 1]]
+ .must_equal [ [ 1, 1, 1, 1, 1, 1 ] ]
ds.delta( [:U], transitions: [:Uplus] ).series
- .must_equal [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0]]
+ .must_equal [ [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ]
tmp = ds.reduce_features( marking: [:U], firing: [:U2V] )
tmp.features
.must_equal( ds.net.State.features marking: [:U], firing: [:U2V] )
tmp.must_equal( { 0 => [2.5, 1], 1 => [2.5, 1], 2 => [2.5, 1],
3 => [2.5, 1], 4 => [2.5, 1], 5 => [2.5, 1] } )