mumuki-qsim-runner 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_hook.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3fdeb0cce90ec3d253d8f0d06e639f2d23e16fd
|
4
|
+
data.tar.gz: d9458ba7abbd0cc4e9aee44bb369534b13dc0cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d94865bae2566a37a374f439e64b91c8f6a2e16b7dc74e521f0724383c4b98d26eebf8db2f9df474d532c785bc2c291a262a44c05dffcb0d23adf201c3697bd
|
7
|
+
data.tar.gz: 2a8cdb07a009b9d74d7c2f40a8ae3f4e157309481dec127f05acae657580e41b9da18f76471d495506c751f2fcfa1a155951ca81c97fb1ff3d8c71d7bd6b21f3
|
data/lib/test_hook.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
class QsimTestHook < Mumukit::Templates::FileHook
|
2
2
|
include Mumukit::WithTempfile
|
3
|
+
attr_reader :examples
|
4
|
+
|
3
5
|
isolated true
|
4
6
|
|
5
7
|
def tempfile_extension
|
@@ -91,7 +93,7 @@ EOF
|
|
91
93
|
end
|
92
94
|
|
93
95
|
def initial_state_file
|
94
|
-
initial_states = @examples.map { |example| default_initial_state.merge(id: example[:id]).
|
96
|
+
initial_states = @examples.map { |example| default_initial_state.merge(id: example[:id]).deep_merge(example[:preconditions]) }
|
95
97
|
JSON.generate initial_states
|
96
98
|
end
|
97
99
|
|