Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3995528
attachments.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
Tue, Jul 7, 1:25 PM
Size
609 B
Mime Type
text/x-c
Expires
Thu, Jul 9, 1:25 PM (1 d, 1 h)
Engine
blob
Format
Raw Data
Handle
271638
Attached To
rXR Xreate
attachments.cpp
View Options
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*
* attachments.cpp
*
* Author: pgess <v.melnychenko@xreate.org>
* Created on January 22, 2017, 12:16 PM
*/
#include "attachments.h"
#include "ast.h"
#include "gtest/gtest.h"
using namespace xreate;
TEST(Attachments, basic1){
AttachmentsContainerDefault<bool>* c = new AttachmentsContainerDefault<bool>();
Expression expTest(Atom<Number_t>(10));
c->put<Expression>(expTest, true);
Expression expTest2(Atom<Number_t>(11));
ASSERT_FALSE(c->exists<Expression>(expTest2));
}
Event Timeline
Log In to Comment