File: EvolutionRunnerTest.cpp

package info (click to toggle)
aevol 9.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,176 kB
  • sloc: cpp: 26,650; ansic: 1,237; sh: 582; python: 545; makefile: 31
file content (27 lines) | stat: -rw-r--r-- 769 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <gtest/gtest.h>

#include <filesystem>

#include "aevol.h"

namespace fs = std::filesystem;
using namespace aevol;

TEST(EvolutionRunnerTest, OpenDefaultFromTime) {
  auto checkpoint_explorer = EvolutionRunner::make_from_checkpoint(100);
}

TEST(EvolutionRunnerTest, OpenDefaultFromFileName) {
  auto checkpoint_explorer =
      EvolutionRunner::make_from_checkpoint_path("./checkpoints/checkpoint_000000100/checkpoint_000000100.ae");
}

TEST(EvolutionRunnerTest, OpenCustomYetCanonical) {
  auto checkpoint_explorer =
      EvolutionRunner::make_from_checkpoint_path("./ckpts/ckpt/my_checkpoint_100.ae");
}

TEST(EvolutionRunnerTest, OpenCustom) {
  auto checkpoint_explorer =
      EvolutionRunner::make_from_checkpoint_path("./ckpts/custom_ckpt/foo.ae");
}