Add tests

This commit is contained in:
proller 2018-03-22 20:32:11 +03:00 committed by alexey-milovidov
parent aacc0bee53
commit b87cfd2924
4 changed files with 24 additions and 1 deletions

View File

@ -427,3 +427,6 @@ SELECT COVAR_POPArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int8)]));
SELECT COVAR_SAMPArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int8)]));
SELECT medianTimingWeightedArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int8)]));
SELECT quantilesDeterministicArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int32)]));
SELECT maxIntersections([], [])
SELECT sumMap([], [])

View File

@ -5,4 +5,4 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/00534_long_functions_bad_arguments.lib
test_variant 'SELECT $_('');'
test_variant 'SELECT $_(\'\');'

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
. $CURDIR/00534_long_functions_bad_arguments.lib
test_variant 'SELECT $_(NULL, NULL);'
test_variant 'SELECT $_([], []);'
test_variant 'SELECT $_([NULL],[NULL]);'

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
. $CURDIR/00534_long_functions_bad_arguments.lib
test_variant 'SELECT $_(NULL, NULL, NULL);'
test_variant 'SELECT $_([], [], []);'
test_variant 'SELECT $_([NULL], [NULL], [NULL]);'