/* 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));
}
