/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/javascript/cpp11_result_of_runme.js
13 строк
438 B
Olly Betts
[js] Add _runme.js files for ynit tests that pass
21 май 2023, 23:18
21 май 2023, 23:18
5eedba4
Код
Авторство
О чём код?
var cpp11_result_of = require("cpp11_result_of"); result = cpp11_result_of.test_result(cpp11_result_of.SQUARE, 3.0); if (result != 9.0) { throw new Error("test_result(square, 3.0) is not 9.0. Got: " + str( result)); } result = cpp11_result_of.test_result_alternative1(cpp11_result_of.SQUARE, 3.0); if (result != 9.0) { throw new Error("test_result_alternative1(square, 3.0) is not 9.0. Got: " + str( result)); }