mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
restore str_join
This commit is contained in:
parent
7b1a3390ab
commit
3dfc823237
@ -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")
|
@ -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")
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user