format code

This commit is contained in:
lixianjing 2021-12-27 17:45:09 +08:00
parent b97d338578
commit 98e7824a6b
2 changed files with 4 additions and 3 deletions

View File

@ -1398,7 +1398,9 @@ TEST(FExr, list_reverse) {
value_t v;
tk_object_t* obj = object_default_create();
fscript_eval(obj, "a=array_create_with_str(\"1,2,3\", \",\", \"i\");array_reverse(a);array_join(a,\",\")", &v);
fscript_eval(
obj, "a=array_create_with_str(\"1,2,3\", \",\", \"i\");array_reverse(a);array_join(a,\",\")",
&v);
ASSERT_STREQ(value_str(&v), "3,2,1");
value_reset(&v);

View File

@ -725,13 +725,12 @@ TEST(ObjectArray, reverse) {
str_clear(&s);
TK_OBJECT_UNREF(obj);
obj = object_array_create_with_str("0,1", ",", VALUE_TYPE_INT32);
ASSERT_EQ(object_array_reverse(obj), RET_OK);
ASSERT_EQ(object_array_join(obj, ",", &s), RET_OK);
ASSERT_STREQ(s.str, "1,0");
str_clear(&s);
obj = object_array_create_with_str("0,1,2", ",", VALUE_TYPE_INT32);
ASSERT_EQ(object_array_reverse(obj), RET_OK);
ASSERT_EQ(object_array_join(obj, ",", &s), RET_OK);