mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test for basename function
This commit is contained in:
parent
95141804fb
commit
87b60f0a3b
5
dbms/tests/queries/0_stateless/00938_basename.reference
Normal file
5
dbms/tests/queries/0_stateless/00938_basename.reference
Normal file
@ -0,0 +1,5 @@
|
||||
bash
|
||||
|
||||
bash
|
||||
test_file
|
||||
script.php
|
5
dbms/tests/queries/0_stateless/00938_basename.sql
Normal file
5
dbms/tests/queries/0_stateless/00938_basename.sql
Normal file
@ -0,0 +1,5 @@
|
||||
SELECT basename('/usr/bin/bash');
|
||||
SELECT basename('/usr/bin/bash/');
|
||||
SELECT basename('bash');
|
||||
SELECT basename('C:\\\\Users\\Documents\\test_file');
|
||||
SELECT basename(path('http://example.com/folder_1/folder_2/script.php'))
|
Loading…
Reference in New Issue
Block a user