<commit_before>//
// Created by patryk on 10.12.16.
//
#include <gtest/gtest.h>
#include <zinot-utils/zimesh-json/ZimeshJsonReader.hpp>

class ZimeshJsonTest : public ::testing::Test
{
protected:
   Zimesh::ZimeshJsonDao zimeshJsonDao;
};

TEST_F(ZimeshJsonTest, loading)
{
   EXPECT_TRUE(Zimesh::ZimeshJsonReader::loadFromJson("media/models/table.json", zimeshJsonDao));
   Zimesh::ZimeshJsonDao & dao = zimeshJsonDao;
}
<commit_msg>Fixed testing Zimesh JSON loader<commit_after>//
// Created by patryk on 10.12.16.
//
#include <gtest/gtest.h>
#include <zinot-utils/zimesh-json/ZimeshJsonReader.hpp>

class ZimeshJsonTest : public ::testing::Test
{
protected:
   Zimesh::ZimeshJsonDao zimeshJsonDao;
};

TEST_F(ZimeshJsonTest, loading)
{
   EXPECT_TRUE(Zimesh::ZimeshJsonReader::loadFromJson("media/models/table/table.json", zimeshJsonDao));
}

{'fraction_non_alphanumeric': 0.14201183431952663, 'fraction_numerical': 0.014201183431952662, 'mean_word_length': 5.82258064516129, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2254838', 'n_tokens_mistral': 340, 'n_tokens_neox': 341, 'n_words': 49}