|
|
|
@ -189,7 +189,7 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
it("Formula: ADD, AVG, LEN", () => { |
|
|
|
|
addFormulaBasedColumn( |
|
|
|
|
"NC_MATH_0", |
|
|
|
|
"ADD($CityId$, $CountryId$) + AVG($CityId$, $CountryId$) + LEN($City$)" |
|
|
|
|
"ADD({CityId}, {CountryId}) + AVG({CityId}, {CountryId}) + LEN({City})" |
|
|
|
|
); |
|
|
|
|
rowValidation("NC_MATH_0", RESULT_MATH_0); |
|
|
|
|
}); |
|
|
|
@ -198,7 +198,7 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
editColumnByName( |
|
|
|
|
"NC_MATH_0", |
|
|
|
|
"NC_STR_1", |
|
|
|
|
`CONCAT(UPPER($City$), LOWER($City$), TRIM(' trimmed '))` |
|
|
|
|
`CONCAT(UPPER({City}), LOWER({City}), TRIM(' trimmed '))` |
|
|
|
|
); |
|
|
|
|
rowValidation("NC_STR_1", RESULT_STRING); |
|
|
|
|
}); |
|
|
|
@ -207,7 +207,7 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
editColumnByName( |
|
|
|
|
"NC_STR_1", |
|
|
|
|
"NC_MATH_1", |
|
|
|
|
`CEILING(1.4) + FLOOR(1.6) + ROUND(2.5) + MOD($CityId$, 3) + MIN($CityId$, $CountryId$) + MAX($CityId$, $CountryId$)` |
|
|
|
|
`CEILING(1.4) + FLOOR(1.6) + ROUND(2.5) + MOD({CityId}, 3) + MIN({CityId}, {CountryId}) + MAX({CityId}, {CountryId})` |
|
|
|
|
); |
|
|
|
|
rowValidation("NC_MATH_1", RESULT_MATH_1); |
|
|
|
|
}); |
|
|
|
@ -218,7 +218,7 @@ export const genTest = (apiType, dbType) => {
|
|
|
|
|
editColumnByName( |
|
|
|
|
"NC_MATH_1", |
|
|
|
|
"NC_MATH_2", |
|
|
|
|
`LOG($CityId$) + EXP($CityId$) + POWER($CityId$, 3) + SQRT($CountryId$)` |
|
|
|
|
`LOG({CityId}) + EXP({CityId}) + POWER({CityId}, 3) + SQRT({CountryId})` |
|
|
|
|
); |
|
|
|
|
rowValidation("NC_MATH_2", RESULT_MATH_2); |
|
|
|
|
} |
|
|
|
|