mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
format code
This commit is contained in:
parent
b97d338578
commit
98e7824a6b
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user