File: test_version.cpp

package info (click to toggle)
rapidyaml 0.10.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,676 kB
  • sloc: cpp: 73,851; python: 3,678; javascript: 414; xml: 253; makefile: 96; sh: 44
file content (29 lines) | stat: -rw-r--r-- 469 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
28
29
#ifndef RYML_SINGLE_HEADER
#include "c4/yml/version.hpp"
#endif
#include "./test_lib/test_case.hpp"
#include <gtest/gtest.h>

TEST(version, str)
{
    c4::csubstr v = c4::yml::version();
    EXPECT_GE(v.len, 5);
}

TEST(version, major)
{
    int v = c4::yml::version_major();
    EXPECT_GE(v, 0);
}

TEST(version, minor)
{
    int v = c4::yml::version_minor();
    EXPECT_GE(v, 0);
}

TEST(version, patch)
{
    int v = c4::yml::version_patch();
    EXPECT_GE(v, 0);
}