⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_args.cxx

📁 DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.
💻 CXX
字号:
#include <testlib/testlib_test.h>

#include <vcl_string.h>

MAIN_ARGS( test_args )
{
  START( "argument passing" );
  TEST( "argument count (should be 3)", argc, 3 );
  if ( argc >= 1 )
  {
    testlib_test_begin( "argv[0] should be the test name, or \"all\"" );
    testlib_test_perform( vcl_string("test_args") == argv[0] ||
                          vcl_string("all") == argv[0]);
  }
  if ( argc >= 2 )
  {
    TEST( "argv[1] should be \"one\"", vcl_string("one"), argv[1] );
  }
  if ( argc >= 3 )
  {
    TEST( "argv[2] should be \"two\"", vcl_string("two"), argv[2] );
  }
  SUMMARY();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -