mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Test for bar() with fractional width
This commit is contained in:
parent
eaa176beb8
commit
4cd91b1ec6
20
tests/queries/0_stateless/02504_bar_fractions.reference
Normal file
20
tests/queries/0_stateless/02504_bar_fractions.reference
Normal file
@ -0,0 +1,20 @@
|
||||
0
|
||||
0.125 ▏ E2968F
|
||||
0.25 ▎ ▏ E2968E E2968F
|
||||
0.375 ▍ ▎ E2968D E2968E
|
||||
0.5 ▌ ▍ E2968C E2968D
|
||||
0.625 ▋ ▌ E2968B E2968C
|
||||
0.75 ▊ ▋ E2968A E2968B
|
||||
0.875 ▉ ▊ E29689 E2968A
|
||||
1 █ ▉ E29688 E29689
|
||||
1.125 █▏ █ E29688E2968F E29688
|
||||
1.25 █▎ █▏ E29688E2968E E29688E2968F
|
||||
1.375 █▍ █▎ E29688E2968D E29688E2968E
|
||||
1.5 █▌ █▍ E29688E2968C E29688E2968D
|
||||
1.625 █▋ █▌ E29688E2968B E29688E2968C
|
||||
1.75 █▊ █▋ E29688E2968A E29688E2968B
|
||||
1.875 █▉ █▊ E29688E29689 E29688E2968A
|
||||
2 ██ █▉ E29688E29688 E29688E29689
|
||||
2.125 ██▏ ██ E29688E29688E2968F E29688E29688
|
||||
2.25 ██▎ ██▏ E29688E29688E2968E E29688E29688E2968F
|
||||
2.375 ██▍ ██▎ E29688E29688E2968D E29688E29688E2968E
|
7
tests/queries/0_stateless/02504_bar_fractions.sql
Normal file
7
tests/queries/0_stateless/02504_bar_fractions.sql
Normal file
@ -0,0 +1,7 @@
|
||||
SELECT
|
||||
number / 8 AS width,
|
||||
bar(width, 0, 3, 3) AS b,
|
||||
bar(width - 0.001, 0, 3, 3) AS `b_minus`,
|
||||
hex(b),
|
||||
hex(b_minus)
|
||||
FROM numbers(20);
|
Loading…
Reference in New Issue
Block a user