From 338b699b2d001807c3ddbaed2af4fa713f788048 Mon Sep 17 00:00:00 2001 From: Ji-Xinyou Date: Sun, 11 Jun 2023 00:41:45 +0800 Subject: [PATCH] misc --- bindings/c/CONTRIBUTING.md | 14 +++++++------- bindings/c/tests/list.cpp | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bindings/c/CONTRIBUTING.md b/bindings/c/CONTRIBUTING.md index df6fc7d9a9df..edf1387d8310 100644 --- a/bindings/c/CONTRIBUTING.md +++ b/bindings/c/CONTRIBUTING.md @@ -1,11 +1,11 @@ # Contributing -1. [Contributing](#contributing) - 1. [Setup](#setup) - 1. [Using a dev container environment](#using-a-dev-container-environment) - 2. [Bring your own toolbox](#bring-your-own-toolbox) - 2. [Build](#build) - 3. [Test](#test) - 4. [Documentation](#documentation) +- [Contributing](#contributing) + - [Setup](#setup) + - [Using a dev container environment](#using-a-dev-container-environment) + - [Bring your own toolbox](#bring-your-own-toolbox) + - [Build](#build) + - [Test](#test) + - [Documentation](#documentation) ## Setup diff --git a/bindings/c/tests/list.cpp b/bindings/c/tests/list.cpp index f9747c4a1fe8..bfceeecd3989 100644 --- a/bindings/c/tests/list.cpp +++ b/bindings/c/tests/list.cpp @@ -81,10 +81,10 @@ TEST_F(OpendalListTest, ListDirTest) { opendal_metadata meta = s.meta; if (!strcmp(de_path, path.c_str())) { - found = true; - EXPECT_TRUE(opendal_metadata_is_file(&meta)); EXPECT_EQ(opendal_metadata_content_length(&meta), nbytes); + + found = true; } opendal_entry_free(&entry);