File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
libraries/ArduinoTestSuite/examples/ATS_SD_Seek Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,24 @@ void setup()
82
82
83
83
f. close();
84
84
85
+ f = SD . open(" test.txt" );
86
+ ATS_PrintTestStatus (" SD.open()" , f);
87
+ if (! f) goto done;
88
+
89
+ ATS_PrintTestStatus (" position()" , f. position() == 0 );
90
+ ATS_PrintTestStatus (" size()" , f. size() == 10 );
91
+ ATS_PrintTestStatus (" peek()" , f. peek() == ' A' );
92
+ ATS_PrintTestStatus (" read()" , f. read() == ' A' );
93
+
94
+ f. seek(4 );
95
+
96
+ ATS_PrintTestStatus (" position()" , f. position() == 4 );
97
+ ATS_PrintTestStatus (" size()" , f. size() == 10 );
98
+ ATS_PrintTestStatus (" peek()" , f. peek() == ' 4' );
99
+ ATS_PrintTestStatus (" read()" , f. read() == ' 4' );
100
+
101
+ f. close();
102
+
85
103
done:
86
104
ATS_ReportMemoryUsage (startMemoryUsage);
87
105
ATS_end ();
You can’t perform that action at this time.
0 commit comments