Skip to content

Commit 24eb342

Browse files
author
jantje
committed
Removed the not working examples
1 parent 64aef37 commit 24eb342

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

io.sloeber.core/src/jUnit/CreateAndCompileExamples.java

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,31 @@ public static Collection examples() {
9090
}
9191

9292
private static boolean isExampleOkForUno(String key) {
93-
final String[] notOkForUno = { "Esploraexamples-Beginners-EsploraAccelerometer",
94-
"Esploraexamples-Beginners-EsploraBlink", "Esploraexamples-Beginners-EsploraJoystickMouse",
95-
"Esploraexamples-Beginners-EsploraLedShow", "Esploraexamples-Beginners-EsploraLedShow2" };
93+
final String[] notOkForUno = { "Firmataexamples-StandardFirmataWiFi", "examples-04.Communication-MultiSerial",
94+
"examples-09.USB-Keyboard-KeyboardLogout", "examples-09.USB-Keyboard-KeyboardMessage",
95+
"examples-09.USB-Keyboard-KeyboardReprogram", "examples-09.USB-Keyboard-KeyboardSerial",
96+
"examples-09.USB-KeyboardAndMouseControl", "examples-09.USB-Mouse-ButtonMouseControl",
97+
"examples-09.USB-Mouse-JoystickMouseControl", };
9698
if (key.startsWith("Esploraexamples"))
9799
return false;
100+
if (key.startsWith("TFTexamples-Esplora-EsploraTFTTemp"))
101+
return false;
102+
103+
if (key.contains("Firmata"))
104+
return false;
98105
if (Arrays.asList(notOkForUno).contains(key))
99106
return false;
100107
return true; // default everything is fine
101108
}
102109

103110
private static boolean isExampleOkForLeonardo(String key) {
104-
final String[] notOkForLeonardo = { "Esploraexamples-Beginners-EsploraJoystickMouse" };
111+
final String[] notOkForLeonardo = { "Esploraexamples-Beginners-EsploraJoystickMouse",
112+
"Esploraexamples-Experts-EsploraKart", "Esploraexamples-Experts-EsploraTable",
113+
"Firmataexamples-StandardFirmataWiFi" };
114+
if (key.contains("Firmata"))
115+
return false;
116+
if (key.startsWith("TFTexamples-Esplora-EsploraTFTTemp"))
117+
return false;
105118
if (Arrays.asList(notOkForLeonardo).contains(key))
106119
return false;
107120
return true; // default everything is fine

0 commit comments

Comments
 (0)