Skip to content

Commit

Permalink
Add add'l tests
Browse files Browse the repository at this point in the history
  • Loading branch information
earlephilhower committed Mar 10, 2019
1 parent 42663b8 commit d3a7556
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/host/fs/test_fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ TEST_CASE("Multisplendored File::writes", "[fs]")
f.write('a');
f.write(65);
f.write("bbcc");
f.write("theend", 6);
char block[3]={'x','y','z'};
f.write(block, 3);
uint32_t bigone = 0x40404040;
f.write((const uint8_t*)&bigone, 4);
f.close();
REQUIRE(readFileSD("/file.txt") == "aAbbcc");
REQUIRE(readFileSD("/file.txt") == "aAbbcctheendxyz@@@@");
}

0 comments on commit d3a7556

Please sign in to comment.