From 50fe918561d5f049221819b082d7780334a583b2 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sat, 23 Dec 2023 16:17:36 +0100 Subject: [PATCH] tests fix tftp tests --- tests/tfpt_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tfpt_tests.cpp b/tests/tfpt_tests.cpp index f58a197..6d85d96 100644 --- a/tests/tfpt_tests.cpp +++ b/tests/tfpt_tests.cpp @@ -33,15 +33,15 @@ TEST(TFTP, custom_fread) char buf[11]; tftp_custom_fseek(&file, 0, SEEK_SET); size_t bytes = tftp_custom_fread(buf, 11, &file); - EXPECT_EQ(bytes, 10); - EXPECT_EQ(file.offset, 10); + EXPECT_EQ(bytes, 11); + EXPECT_EQ(file.offset, 11); EXPECT_EQ(memcmp(buf, "1234567890", 10), 0); memset(buf, 0, 11); tftp_custom_fseek(&file, 0, SEEK_SET); bytes = tftp_custom_fread(buf, 11, &file); - EXPECT_EQ(bytes, 10); + EXPECT_EQ(bytes, 11); EXPECT_EQ(memcmp(buf, "1234567890", 10), 0); memset(buf, 0, 11);