[all] Fix validation tests, added function isNum

This commit is contained in:
Angsar
2026-02-03 11:25:22 +05:00
committed by Igor Zotov
parent 52d42f9f33
commit de29af0fb5

View File

@ -32,6 +32,9 @@
$(function () { $(function () {
var ws = AscTest.JsApi.GetActiveSheet(); var ws = AscTest.JsApi.GetActiveSheet();
function isNum(value) {
return !isNaN(parseFloat(value)) && isFinite(value);
}
// ======= TEST HELPERS ======= // ======= TEST HELPERS =======
// Must exist & each test must start with it // Must exist & each test must start with it