You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have multiple files to generate in a build script (such as a Rakefile), you might want to instantiate a generator object with your options and call it to generate each runner afterwards.
97
-
Like thus:
97
+
Like this:
98
98
99
99
```Ruby
100
100
gen =UnityTestRunnerGenerator.new(options)
101
101
test_files.each do |f|
102
-
gen.run(f, File.basename(f,'.c')+"Runner.c"
102
+
gen.run(f, File.basename(f,'.c')+"Runner.c")
103
103
end
104
104
```
105
105
@@ -205,7 +205,7 @@ Few usage examples can be found in `/test/tests/test_unity_parameterized.c` file
205
205
You should define `UNITY_SUPPORT_TEST_CASES` macro for tests success compiling,
@@ -299,7 +299,7 @@ Unity provides support for few param tests generators, that can be combined
299
299
with each other. You must define test function as usual C function with usual
300
300
C arguments, and test generator will pass what you tell as a list of arguments.
301
301
302
-
Let's show how all of them works on the following test function definitions:
302
+
Let's show how all of them work on the following test function definitions:
303
303
304
304
```C
305
305
/* Place your test generators here, usually one generator per one or few lines */
@@ -401,17 +401,17 @@ TEST_CASE(4, 6, 30)
401
401
Test matix is an advanced generator. It single call can be converted to zero,
402
402
one or few `TEST_CASE` equivalent commands.
403
403
404
-
That generator will create tests for all cobinations of the provided list. Each argument has to be given as a list of one or more elements in the format `[<parm1>, <param2>, ..., <paramN-1>, <paramN>]`.
404
+
That generator will create tests for all combinations of the provided list. Each argument has to be given as a list of one or more elements in the format `[<parm1>, <param2>, ..., <paramN-1>, <paramN>]`.
405
405
406
-
All parameters supported by the `TEST_CASE` is supported as arguments:
406
+
All parameters supported by the `TEST_CASE` are supported as arguments:
407
407
- Numbers incl type specifiers e.g. `<1>`, `<1u>`, `<1l>`, `<2.3>`, or `<2.3f>`
408
-
- Strings incl string concatianion e.g. `<"string">`, or `<"partial" "string">`
408
+
- Strings incl string concatenation e.g. `<"string">`, or `<"partial" "string">`
409
409
- Chars e.g. `<'c'>`
410
410
- Enums e.g. `<ENUM_NAME>`
411
411
- Elements of arrays e.g. `<data[0]>`
412
412
413
-
Let's use our `test_demoParamFunction` test for checking, what ranges
414
-
will be generated for our single `TEST_RANGE` row:
413
+
Let's use our `test_demoParamFunction` test for checking what ranges
414
+
will be generated for our single `TEST_MATRIX` row:
0 commit comments