This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const checkThatTwoPlusTwoEqualsFourAMillionTimes = () => { | |
for(let i = 1; i <= 1000000; i++) { | |
if ( (2 + 2) != 4) { | |
console.log('Something has gone very wrong :( '); | |
} | |
} | |
}; | |
const addTwo = num => num + 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//[+> Тест | |
Procedure PressExecuteButton(Button) | |
Данные1 = РазобратьXml(XMLReader(XML_V1())); | |
XDTO1 = ФабрикаXDTO.ПрочитатьXML(XMLReader(XML_V1())); | |
Данные2 = РазобратьXml(XMLReader(XML_V2())); | |
XDTO2 = ФабрикаXDTO.ПрочитатьXML(XMLReader(XML_V2())); | |
XMLReader = XMLReader(XML_V1()); | |
XMLReader.Read(); | |
Данные3 = РазобратьXml(XMLReader); | |
XMLReader = XMLReader(XML_V1()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if desc("desribe message") then | |
if before() then | |
variable = "value" | |
endif; | |
if after() then | |
endif; | |
if it("it message") then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Var PARSE_RESULT; | |
Var EXCUTE_CONTEXT; | |
function NewSpec(mess, owner) | |
return New Structure("Spec, Owner", mess, owner); | |
endfunction | |
function NewTest(mess, owner) | |
return New Structure("Name, Owner, FullSpecName, FullTestName", mess, owner, FullSpecName(Owner), FullTestName(mess, Owner)); | |
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Процедура КнопкаВыполнитьНажатие(Кнопка) | |
for each test in TestsGet().UnloadValues() do | |
RunTest(test, "FIXME"); | |
enddo; | |
КонецПроцедуры | |
function RunTest(Form, TestName) export | |
return ObjectNew().Exec(ObjectNew().Parse(Form), TestName); | |
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////////// | |
// ОбщийМодуль a2sUtils - функции для удобной работы со встроенными типами 1С. | |
// Флаги модуля: | |
// - Сервер | |
// - ТонкийКлиент | |
// - ВнешнееСоединение | |
// - ВызовСервера - для обычного приложения | |
#Region Exceptions_Constants_Types | |
//* Exceptions */////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////////// | |
// Модуль a2sQuery - обертки для удобной работы с запросами 1С. | |
// - меньше кода при работе с запросами | |
// - можно получать актуальные данные доступные текущей транзакции в отладчике | |
// - можно исследовать временные таблицы в отладчике | |
// Флаги модуля: | |
// - Сервер | |
// - ВнешнееСоединение | |
// - ВызовСервера - для обычного приложения |