mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
f4b4b3cc35
added some edge cases for printf tests
32 lines
503 B
Plaintext
32 lines
503 B
Plaintext
%d: 123
|
|
%d: -123
|
|
%d: 0
|
|
%d: 9223372036854775807
|
|
%i: 123
|
|
%u: 123
|
|
%o: 173
|
|
%x: 7b
|
|
%X: 7B
|
|
%f: 0.000000
|
|
%f: 123.456000
|
|
%f: -123.456000
|
|
%F: 123.456000
|
|
%e: 1.234560e+02
|
|
%E: 1.234560E+02
|
|
%g: 123.456
|
|
%G: 123.456
|
|
%a: 0x1.edd2f1a9fbe77p+6
|
|
%A: 0X1.EDD2F1A9FBE77P+6
|
|
%s: abc
|
|
┌─printf('%%s: %s', '\n\t')─┐
|
|
1. │ %s:
|
|
│
|
|
└───────────────────────────┘
|
|
%s:
|
|
%%: %
|
|
%.5d: 00123
|
|
%.2f: 123.46
|
|
%.2e: 1.23e+02
|
|
%.2g: 1.2e+02
|
|
%.2s: ab
|