mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
format
This commit is contained in:
parent
d897241485
commit
d502f83fca
@ -79,8 +79,7 @@ TEST(sysObj, setattr) {
|
|||||||
|
|
||||||
#if !PIKA_NANO_ENABLE
|
#if !PIKA_NANO_ENABLE
|
||||||
TEST(sysobj, print_no_end) {
|
TEST(sysobj, print_no_end) {
|
||||||
char* line =
|
char* line = "print('test', end='')\n";
|
||||||
"print('test', end='')\n";
|
|
||||||
PikaObj* self = newRootObj("root", New_PikaStdLib_SysObj);
|
PikaObj* self = newRootObj("root", New_PikaStdLib_SysObj);
|
||||||
obj_run(self, line);
|
obj_run(self, line);
|
||||||
/* collect */
|
/* collect */
|
||||||
@ -94,8 +93,7 @@ TEST(sysobj, print_no_end) {
|
|||||||
|
|
||||||
#if !PIKA_NANO_ENABLE
|
#if !PIKA_NANO_ENABLE
|
||||||
TEST(sysobj, print) {
|
TEST(sysobj, print) {
|
||||||
char* line =
|
char* line = "print(0, ['Hi'])\n";
|
||||||
"print(0, ['Hi'])\n";
|
|
||||||
PikaObj* self = newRootObj("root", New_PikaStdLib_SysObj);
|
PikaObj* self = newRootObj("root", New_PikaStdLib_SysObj);
|
||||||
obj_run(self, line);
|
obj_run(self, line);
|
||||||
/* collect */
|
/* collect */
|
||||||
@ -107,8 +105,7 @@ TEST(sysobj, print) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(sysobj, print2) {
|
TEST(sysobj, print2) {
|
||||||
char* line =
|
char* line = "print(0, ['Hi'], b'test')\n";
|
||||||
"print(0, ['Hi'], b'test')\n";
|
|
||||||
PikaObj* self = newRootObj("root", New_PikaStdLib_SysObj);
|
PikaObj* self = newRootObj("root", New_PikaStdLib_SysObj);
|
||||||
obj_run(self, line);
|
obj_run(self, line);
|
||||||
/* collect */
|
/* collect */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user