From d3a75565da280c799c10c55e3184baa7aa670235 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Sun, 10 Mar 2019 11:53:41 -0700 Subject: [PATCH] Add add'l tests --- tests/host/fs/test_fs.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/host/fs/test_fs.cpp b/tests/host/fs/test_fs.cpp index 6b0d993a72..5c39d3d582 100644 --- a/tests/host/fs/test_fs.cpp +++ b/tests/host/fs/test_fs.cpp @@ -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@@@@"); }