moving code into aare:: namespace

This commit is contained in:
Erik Frojdh
2024-04-02 12:26:51 +02:00
parent 449c5119a4
commit 0a6030aa3e
35 changed files with 122 additions and 17 deletions

View File

@ -3,8 +3,10 @@
#include <array>
// using reuss::DataSpan;
// using reuss::Shape;
using aare::NDArray;
using aare::NDView;
using aare::Shape;
TEST_CASE("Initial size is zero if no size is specified")
{

View File

@ -4,7 +4,8 @@
#include <iostream>
#include <vector>
using aare::NDView;
using aare::Shape;
TEST_CASE("Element reference 1D") {
std::vector<int> vec;

View File

@ -4,5 +4,5 @@
TEST_CASE("Enum to string conversion"){
//By the way I don't think the enum string conversions should be in the defs.hpp file
//but let's use this to show a test
REQUIRE(toString(DetectorType::Jungfrau) == "Jungfrau");
REQUIRE(toString(aare::DetectorType::Jungfrau) == "Jungfrau");
}

View File

@ -4,6 +4,10 @@
#include <catch2/catch_test_macros.hpp>
#include <cstdint>
using aare::Frame;
using aare::NDView;
using aare::NDArray;
TEST_CASE("Frame") {
auto data = new uint16_t[100];
for (int i = 0; i < 100; i++) {