From 3dfc823237d4256f59b7f218e9efd63c87449f1b Mon Sep 17 00:00:00 2001 From: Lyon Date: Mon, 31 Jul 2023 18:58:50 +0800 Subject: [PATCH] restore str_join --- examples/builtins/str_join.py | 10 +++++----- port/linux/test/python/builtins/str_join.py | 10 +++++----- src/PikaVersion.h | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/builtins/str_join.py b/examples/builtins/str_join.py index 5f4fecd77..714e4158e 100644 --- a/examples/builtins/str_join.py +++ b/examples/builtins/str_join.py @@ -1,8 +1,8 @@ # 测试用例 assert ''.join([]) == '' -# assert ','.join(['a']) == 'a' -# assert ','.join(['a', 'b']) == 'a,b' -# assert ''.join(['a', 'b', 'c']) == 'abc' -# assert '-'.join(['a', 'b', 'c']) == 'a-b-c' -# assert ' '.join(['hello', 'world']) == 'hello world' +assert ','.join(['a']) == 'a' +assert ','.join(['a', 'b']) == 'a,b' +assert ''.join(['a', 'b', 'c']) == 'abc' +assert '-'.join(['a', 'b', 'c']) == 'a-b-c' +assert ' '.join(['hello', 'world']) == 'hello world' print("PASS") \ No newline at end of file diff --git a/port/linux/test/python/builtins/str_join.py b/port/linux/test/python/builtins/str_join.py index 5f4fecd77..714e4158e 100644 --- a/port/linux/test/python/builtins/str_join.py +++ b/port/linux/test/python/builtins/str_join.py @@ -1,8 +1,8 @@ # 测试用例 assert ''.join([]) == '' -# assert ','.join(['a']) == 'a' -# assert ','.join(['a', 'b']) == 'a,b' -# assert ''.join(['a', 'b', 'c']) == 'abc' -# assert '-'.join(['a', 'b', 'c']) == 'a-b-c' -# assert ' '.join(['hello', 'world']) == 'hello world' +assert ','.join(['a']) == 'a' +assert ','.join(['a', 'b']) == 'a,b' +assert ''.join(['a', 'b', 'c']) == 'abc' +assert '-'.join(['a', 'b', 'c']) == 'a-b-c' +assert ' '.join(['hello', 'world']) == 'hello world' print("PASS") \ No newline at end of file diff --git a/src/PikaVersion.h b/src/PikaVersion.h index dfff010d1..295a55dce 100644 --- a/src/PikaVersion.h +++ b/src/PikaVersion.h @@ -2,4 +2,4 @@ #define PIKA_VERSION_MINOR 12 #define PIKA_VERSION_MICRO 4 -#define PIKA_EDIT_TIME "2023/07/31 13:01:05" +#define PIKA_EDIT_TIME "2023/07/31 18:58:35"