Sha256: dc5751cd97d1ba49dfaf890420a1546fd184ead0fe160860d87bbdbab4ecfad7
Contents?: true
Size: 821 Bytes
Versions: 1
Compression:
Stored size: 821 Bytes
Contents
// // test-SymbolTable.cc // snowcrash // // Created by Zdenek Nemec on 6/9/13. // Copyright (c) 2013 Apiary Inc. All rights reserved. // #include "snowcrash.h" #include "snowcrashtest.h" #include "ResourceParser.h" using namespace snowcrash; using namespace snowcrashtest; TEST_CASE("Parse object resource symbol", "[symbol_table]") { mdp::ByteBuffer source = \ "# /resource\n"\ "+ Super Model (text/plain)\n\n"\ " {...}\n"; // Check we will get error parsing the same symbol again with the same symbol table Symbols symbols; SymbolHelper::buildSymbol("Super", symbols); ParseResult<Resource> resource; SectionParserHelper<Resource, ResourceParser>::parse(source, ModelBodySectionType, resource, 0, symbols); REQUIRE(resource.report.error.code != Error::OK); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redsnow-0.3.2 | ext/snowcrash/test/test-SymbolTable.cc |