mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-05 13:16:13 +03:00
Fixed typo in test
This commit is contained in:
@@ -14,10 +14,10 @@ public class PdePreprocessorTest {
|
|||||||
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("RemoteCallLogger_v1e0.ino").getFile()));
|
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("RemoteCallLogger_v1e0.ino").getFile()));
|
||||||
|
|
||||||
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
||||||
String stippedOutput = pdePreprocessor.strip(s);
|
String strippedOutput = pdePreprocessor.strip(s);
|
||||||
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("RemoteCallLogger_v1e0.stripped.ino").getFile()));
|
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("RemoteCallLogger_v1e0.stripped.ino").getFile()));
|
||||||
|
|
||||||
assertEquals(expectedStrippedOutput, stippedOutput);
|
assertEquals(expectedStrippedOutput, strippedOutput);
|
||||||
|
|
||||||
pdePreprocessor.writePrefix(s);
|
pdePreprocessor.writePrefix(s);
|
||||||
|
|
||||||
@@ -36,10 +36,10 @@ public class PdePreprocessorTest {
|
|||||||
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("IncludeBetweenMultilineComment.ino").getFile()));
|
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("IncludeBetweenMultilineComment.ino").getFile()));
|
||||||
|
|
||||||
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
||||||
String stippedOutput = pdePreprocessor.strip(s);
|
String strippedOutput = pdePreprocessor.strip(s);
|
||||||
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("IncludeBetweenMultilineComment.stripped.ino").getFile()));
|
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("IncludeBetweenMultilineComment.stripped.ino").getFile()));
|
||||||
|
|
||||||
assertEquals(expectedStrippedOutput, stippedOutput);
|
assertEquals(expectedStrippedOutput, strippedOutput);
|
||||||
|
|
||||||
pdePreprocessor.writePrefix(s);
|
pdePreprocessor.writePrefix(s);
|
||||||
|
|
||||||
@@ -57,10 +57,10 @@ public class PdePreprocessorTest {
|
|||||||
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("Baladuino.ino").getFile()));
|
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("Baladuino.ino").getFile()));
|
||||||
|
|
||||||
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
||||||
String stippedOutput = pdePreprocessor.strip(s);
|
String strippedOutput = pdePreprocessor.strip(s);
|
||||||
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("Baladuino.stripped.ino").getFile()));
|
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("Baladuino.stripped.ino").getFile()));
|
||||||
|
|
||||||
assertEquals(expectedStrippedOutput, stippedOutput);
|
assertEquals(expectedStrippedOutput, strippedOutput);
|
||||||
|
|
||||||
pdePreprocessor.writePrefix(s);
|
pdePreprocessor.writePrefix(s);
|
||||||
|
|
||||||
@@ -86,10 +86,10 @@ public class PdePreprocessorTest {
|
|||||||
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("StringWithCcomment.ino").getFile()));
|
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("StringWithCcomment.ino").getFile()));
|
||||||
|
|
||||||
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
||||||
String stippedOutput = pdePreprocessor.strip(s);
|
String strippedOutput = pdePreprocessor.strip(s);
|
||||||
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("StringWithCcomment.stripped.ino").getFile()));
|
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("StringWithCcomment.stripped.ino").getFile()));
|
||||||
|
|
||||||
assertEquals(expectedStrippedOutput, stippedOutput);
|
assertEquals(expectedStrippedOutput, strippedOutput);
|
||||||
|
|
||||||
pdePreprocessor.writePrefix(s);
|
pdePreprocessor.writePrefix(s);
|
||||||
|
|
||||||
@@ -106,10 +106,10 @@ public class PdePreprocessorTest {
|
|||||||
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("CharWithEscapedDoubleQuote.ino").getFile()));
|
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("CharWithEscapedDoubleQuote.ino").getFile()));
|
||||||
|
|
||||||
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
||||||
String stippedOutput = pdePreprocessor.strip(s);
|
String strippedOutput = pdePreprocessor.strip(s);
|
||||||
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("CharWithEscapedDoubleQuote.stripped.ino").getFile()));
|
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("CharWithEscapedDoubleQuote.stripped.ino").getFile()));
|
||||||
|
|
||||||
assertEquals(expectedStrippedOutput, stippedOutput);
|
assertEquals(expectedStrippedOutput, strippedOutput);
|
||||||
|
|
||||||
pdePreprocessor.writePrefix(s);
|
pdePreprocessor.writePrefix(s);
|
||||||
|
|
||||||
@@ -128,10 +128,10 @@ public class PdePreprocessorTest {
|
|||||||
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("LineContinuations.ino").getFile()));
|
String s = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("LineContinuations.ino").getFile()));
|
||||||
|
|
||||||
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
PdePreprocessor pdePreprocessor = new PdePreprocessor();
|
||||||
String stippedOutput = pdePreprocessor.strip(s);
|
String strippedOutput = pdePreprocessor.strip(s);
|
||||||
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("LineContinuations.stripped.ino").getFile()));
|
String expectedStrippedOutput = FileUtils.readFileToString(new File(PdePreprocessorTest.class.getResource("LineContinuations.stripped.ino").getFile()));
|
||||||
|
|
||||||
assertEquals(expectedStrippedOutput, stippedOutput);
|
assertEquals(expectedStrippedOutput, strippedOutput);
|
||||||
|
|
||||||
pdePreprocessor.writePrefix(s);
|
pdePreprocessor.writePrefix(s);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user