restore str_join

This commit is contained in:
Lyon 2023-07-31 18:58:50 +08:00
parent 7b1a3390ab
commit 3dfc823237
3 changed files with 11 additions and 11 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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"