File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ set(TEST_SRCS
3939 src/Print/test_getWriteError.cpp
4040 src/Print/test_print.cpp
4141 src/Print/test_println.cpp
42+ src/Print/test_availableForWrite.cpp
4243 src/Ringbuffer/test_available.cpp
4344 src/Ringbuffer/test_availableForStore.cpp
4445 src/Ringbuffer/test_clear.cpp
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2020 Arduino. All rights reserved.
3+ */
4+
5+ /* *************************************************************************************
6+ * INCLUDE
7+ **************************************************************************************/
8+
9+ #include < catch.hpp>
10+
11+ #include < Print.h>
12+
13+ #include < PrintMock.h>
14+
15+ /* *************************************************************************************
16+ * TEST CODE
17+ **************************************************************************************/
18+
19+ TEST_CASE (" Print::availableForWrite() should return 0 if not overwritten by derived class" , " [Print-availableForWrite-01]" )
20+ {
21+ PrintMock mock;
22+ REQUIRE (mock.availableForWrite () == 0 );
23+ }
You can’t perform that action at this time.
0 commit comments