Added test of an empty string

This commit is contained in:
Benoit Blanchon committed 2014-08-25 09:17:32 +02:00
1 parent f29904e217
commit 1f25d4434e
5 files changed
+49 -3

No files matched your search

+1 -1
View File
@@ -7,5 +7,5 @@
size_t IndentedPrintDecorator::write(uint8_t c)
{
return print.write(c);
return sink.write(c);
}
+2 -2
View File
@@ -13,7 +13,7 @@ class IndentedPrintDecorator : public Print
public:
IndentedPrintDecorator(Print& p)
: currentLevel(0), print(p)
: currentLevel(0), sink(p)
{
}
@@ -21,6 +21,6 @@ public:
private:
int currentLevel;
Print& print;
Print& sink;
};