<commit_before>//=======================================================================
// Copyright (c) 2014 <NAME>
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
//  http://opensource.org/licenses/MIT)
//=======================================================================

#include "catch.hpp"

#include "etl/etl.hpp"

//TODO Restore the feature on vectors

//{{{ hflip

TEST_CASE( "hflip/fast_vector", "hflip" ) {
    etl::fast_vector<double, 3> a({1.0, -2.0, 3.0});
    etl::fast_vector<double, 3> b(hflip(a));

    REQUIRE(b[0] == 3.0);
    REQUIRE(b[1] == -2.0);
    REQUIRE(b[2] == 1.0);
}

TEST_CASE( "hflip/dyn_vector", "hflip" ) {
    etl::dyn_vector<double> a({1.0, -2.0, 3.0});
    etl::dyn_vector<double> b(hflip(a));
<commit_msg>Remove old TODO<commit_after>//=======================================================================
// Copyright (c) 2014 <NAME>
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
//  http://opensource.org/licenses/MIT)
//=======================================================================

#include "catch.hpp"

#include "etl/etl.hpp"

//{{{ hflip

TEST_CASE( "hflip/fast_vector", "hflip" ) {
    etl::fast_vector<double, 3> a({1.0, -2.0, 3.0});
    etl::fast_vector<double, 3> b(hflip(a));

    REQUIRE(b[0] == 3.0);
    REQUIRE(b[1] == -2.0);
    REQUIRE(b[2] == 1.0);
}

TEST_CASE( "hflip/dyn_vector", "hflip" ) {
    etl::dyn_vector<double> a({1.0, -2.0, 3.0});
    etl::dyn_vector<double> b(hflip(a));

{'fraction_non_alphanumeric': 0.3583815028901734, 'fraction_numerical': 0.03468208092485549, 'mean_word_length': 4.409722222222222, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3780713', 'n_tokens_mistral': 614, 'n_tokens_neox': 553, 'n_words': 112}