From 245eba8d5b47f53bf6ba42cc990bfe05acc6d3ba Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 17 Mar 2019 22:39:59 -0500 Subject: [PATCH] [ox/fs] Switch some FS test asserts to check for ox::Error instead of 0 --- deps/ox/src/ox/fs/test/tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/ox/src/ox/fs/test/tests.cpp b/deps/ox/src/ox/fs/test/tests.cpp index dd5f2763..202f1c7e 100644 --- a/deps/ox/src/ox/fs/test/tests.cpp +++ b/deps/ox/src/ox/fs/test/tests.cpp @@ -155,14 +155,14 @@ map tests = { constexpr auto str2 = "Hello, Moon!"; constexpr auto str2Len = ox_strlen(str2) + 1; auto list = new (ox_alloca(buffLen)) ox::ptrarith::NodeBuffer>(buffLen); - oxAssert(ox::FileStore32::format(list, buffLen) == 0, "FileStore::format failed."); + oxAssert(ox::FileStore32::format(list, buffLen), "FileStore::format failed."); ox::FileStore32 fileStore(list, buffLen); - oxAssert(fileStore.write(4, const_cast(str1), str1Len, 1) == 0, "FileStore::write 1 failed."); - oxAssert(fileStore.write(5, const_cast(str2), str2Len, 1) == 0, "FileStore::write 2 failed."); + oxAssert(fileStore.write(4, const_cast(str1), str1Len, 1), "FileStore::write 1 failed."); + oxAssert(fileStore.write(5, const_cast(str2), str2Len, 1), "FileStore::write 2 failed."); char str1Read[str1Len]; size_t str1ReadSize = 0; - oxAssert(fileStore.read(4, reinterpret_cast(str1Read), str1Len, &str1ReadSize) == 0, "FileStore::read 1 failed."); + oxAssert(fileStore.read(4, reinterpret_cast(str1Read), str1Len, &str1ReadSize), "FileStore::read 1 failed."); return 0; }