/
niceSOFT
/
gawk
Обзор
Документация
Войти
/
niceSOFT
/
gawk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/arrdbg.awk
19 строк
557 B
Arnold D. Robbins
Fix testext test for MPFR.
12 июл 2020, 20:58
12 июл 2020, 20:58
4687b88
Код
Авторство
О чём код?
function check(x, exptype, mpfr_exptype, f) { f[x] printf "array_f subscript [%s]\n", x printf "array_f subscript [%s]\n", x > okfile printf "array_f subscript [%s]\n", x > mpfr_okfile adump(f, -1) printf " array_func: %s_array_func\n", exptype > okfile printf " array_func: %s_array_func\n", mpfr_exptype > mpfr_okfile } BEGIN { check(3.0, "cint", "str") check(-3, "int", "str") check("3.0", "str", "str") split(" 3", f, "|") # create a maybe_num value check(f[1], "str", "str") check("0", "cint", "str") check("-1", "int", "str") }