mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
upd tests
This commit is contained in:
parent
d4e5686b99
commit
ad2b9cc4e4
@ -45,4 +45,3 @@ foo
|
||||
foob
|
||||
fooba
|
||||
foobar
|
||||
1 1
|
||||
|
@ -3,6 +3,8 @@
|
||||
SET send_logs_level = 'fatal';
|
||||
|
||||
SELECT base58Encode('Hold my beer...');
|
||||
SELECT base58Encode('Hold my beer...', ''); -- { serverError 44 }
|
||||
SELECT base58Encode('Hold my beer...', 'gmp', 'third'); -- { serverError 36 }
|
||||
|
||||
SELECT base58Decode(encoded, 'gmp') FROM (SELECT base58Encode(val, 'gmp') as encoded FROM (select arrayJoin(['', 'f', 'fo', 'foo', 'foob', 'fooba', 'foobar', 'Hello world!']) val));
|
||||
SELECT base58Decode(encoded, 'ripple') FROM (SELECT base58Encode(val, 'ripple') as encoded FROM (select arrayJoin(['', 'f', 'fo', 'foo', 'foob', 'fooba', 'foobar', 'Hello world!']) val));
|
||||
@ -12,6 +14,4 @@ SELECT base58Decode(encoded, 'bitcoin') FROM (SELECT base58Encode(val, 'bitcoin'
|
||||
SELECT base58Encode(val) FROM (select arrayJoin(['', 'f', 'fo', 'foo', 'foob', 'fooba', 'foobar']) val);
|
||||
SELECT base58Decode(val) FROM (select arrayJoin(['', '2m', '8o8', 'bQbp', '3csAg9', 'CZJRhmz', 't1Zv2yaZ']) val);
|
||||
|
||||
SELECT base58Decode(base58Encode('foo')) = 'foo', base58Encode(base58Decode('bQbp')) == 'bQbp';
|
||||
|
||||
SELECT base58Decode('Why_not?'); -- { serverError 1001 }
|
||||
SELECT base58Decode('Why_not?'); -- { serverError 1001 }
|
||||
|
Loading…
Reference in New Issue
Block a user