From 2beb224feabfe807e80f2e1ef50cbf5f2bced62b Mon Sep 17 00:00:00 2001 From: Peter Rosenberg Date: Mon, 4 Feb 2019 21:45:36 +1100 Subject: [PATCH 1/2] add hint to file .arduino-ci.yml --- REFERENCE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/REFERENCE.md b/REFERENCE.md index 1147f8ef..e5c9ebf7 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -90,7 +90,8 @@ platforms: ### Control How Examples Are Compiled -The `compile:` section controls the platforms on which the compilation will be attempted, as well as any external libraries that must be installed and included. +Put a file `.arduino-ci.yml` in each example directory where you require a different configuration than default. +The `compile:` section controls the platforms on which the compilation will be attempted, as well as any external libraries that must be installed and included. ```yaml compile: From 903c70e679faff88ddeadc711b499582fa04079a Mon Sep 17 00:00:00 2001 From: Peter Rosenberg Date: Mon, 4 Feb 2019 21:46:07 +1100 Subject: [PATCH 2/2] define expected and actual on the assert functions --- REFERENCE.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index e5c9ebf7..ab202fdf 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -174,15 +174,15 @@ This test defines one `unittest` (a macro provided by `ArduinoUnitTests.h`), cal The following assertion functions are available in unit tests. -* `assertEqual(arg1,arg2)` -* `assertNotEqual(arg1,arg2)` -* `assertLess(arg1,arg2)` -* `assertMore(arg1,arg2)` -* `assertLessOrEqual(arg1,arg2)` -* `assertMoreOrEqual(arg1,arg2)` -* `assertTrue(arg)` -* `assertFalse(arg)` -* `assertNull(arg)` +* `assertEqual(expected, actual)` +* `assertNotEqual(expected, actual)` +* `assertLess(expected, actual)` +* `assertMore(expected, actual)` +* `assertLessOrEqual(expected, actual)` +* `assertMoreOrEqual(expected, actual)` +* `assertTrue(actual)` +* `assertFalse(actual)` +* `assertNull(actual)` These functions will report the result of the test to the console, and the testing will continue if they fail.