Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F5332362
introduction.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 21, 2:37 AM
Size
856 B
Mime Type
text/x-c++
Expires
Mon, Nov 23, 2:37 AM (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
310384
Attached To
rXR Xreate
introduction.cpp
View Options
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*
* Introduction.cpp
*
* Created on: March 2019
* Author: pgess <v.melnychenko@xreate.org>
*/
#include "xreatemanager.h"
#include "transcendlayer.h"
#include "supplemental/docutils.h"
#include <gtest/gtest.h>
using namespace xreate;
using namespace std;
TEST(Introduction, Doc_Example_1){
string codePreamble = R"CODE(
zeroDivisionErrCode = function:: int {0}
)CODE";
string example = getDocumentationExampleById("documentation/index.xml", "Example_1");
string rules = getDocumentationExampleById("documentation/index.xml", "Transcend_Example_1");
std::unique_ptr<XreateManager> man(XreateManager::prepare(codePreamble + example));
man->transcend->addRawScript(move(rules));
int (* main)() = (int (*)()) man->run();
}
Event Timeline
Log In to Comment