/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/javascript/cpp11_null_pointer_constant_runme.js
20 строк
604 B
Olly Betts
[js] Add _runme.js files for ynit tests that pass
21 май 2023, 23:18
21 май 2023, 23:18
5eedba4
Код
Авторство
О чём код?
var cpp11_null_pointer_constant = require("cpp11_null_pointer_constant"); a = new cpp11_null_pointer_constant.A(); if (a._myA != null) { throw new Error( "cpp11_null_pointer_constant: _myA should be None, but is ", a._myA); } b = new cpp11_null_pointer_constant.A(); if (a._myA != b._myA) { throw new Error( "cpp11_null_pointer_constant: a._myA should be the same as b._myA, but ", a._myA, "!=", b._myA); } a._myA = new cpp11_null_pointer_constant.A(); if (a._myA == null) { throw new Error(( "cpp11_null_pointer_constant: _myA should be object, but is None")); }