File: test_string_conversion.cc

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (19 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "catch.hpp"

#include <interp_testing_util.hh> // For core interp stuff and extra REQUIRE macros/ setup
#include <rs274ngc_interp.hh>
#include <interp_inspection.hh>
#include <interp_return.hh>
#include <saicanon.hh>
#include <interp_parameter_def.hh>
#include <interp_internal.hh>

using namespace interp_param_global;

TEST_CASE("convert G-codes to string")
{
    CHECK_THAT(toString(G_0), Catch::Matchers::Matches("G0"));
    CHECK_THAT(toString(G_5_1), Catch::Matchers::Matches("G5.1"));
    CHECK_THAT(toString(G_64), Catch::Matchers::Matches("G64"));
    CHECK_THAT(toString(G_61_1), Catch::Matchers::Matches("G61.1"));
}