当前位置: 首页>>代码示例>>C++>>正文


C++ UnityBegin函数代码示例

本文整理汇总了C++中UnityBegin函数的典型用法代码示例。如果您正苦于以下问题:C++ UnityBegin函数的具体用法?C++ UnityBegin怎么用?C++ UnityBegin使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UnityBegin函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("refidsmear.c");
  RUN_TEST(test_refidsmear, 36);

  return (UnityEnd());
}
开发者ID:2asoft,项目名称:freebsd,代码行数:9,代码来源:run-refidsmear.c

示例2: main

//=======MAIN=====
int main(void)
{
  UnityBegin("testdata/testsample.c");
  RUN_TEST(test_TheFirstThingToTest, 21);
  RUN_TEST(test_TheSecondThingToTest, 43);

  return (UnityEnd());
}
开发者ID:berdroid,项目名称:Unity,代码行数:9,代码来源:testsample_def.c

示例3: main

//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("uglydate.c");
  RUN_TEST(test_ConstantDateTime, 8);

  return (UnityEnd());
}
开发者ID:fgken,项目名称:netbsd-src,代码行数:9,代码来源:run-uglydate.c

示例4: main

//=======MAIN=====
int main(void)
{
  Unity.TestFile = "test_Callback.c";
  UnityBegin();
  RUN_TEST(test_module_generator_needs_to_be_implemented, 14);

  return (UnityEnd());
}
开发者ID:darklord1310,项目名称:ComplexExpression,代码行数:9,代码来源:test_Callback_runner.c

示例5: main

int main(void)
{
   UnityBegin("test/test_hello_world.c");

   RUN_TEST(test_hello);

   return UnityEnd();
}
开发者ID:exercism,项目名称:xc,代码行数:8,代码来源:test_hello_world.c

示例6: main

//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("rc_cmdlength.c");
  RUN_TEST(test_EvaluateCommandLength, 15);

  return (UnityEnd());
}
开发者ID:cemeyer,项目名称:freebsd-base-graphics,代码行数:9,代码来源:run-rc_cmdlength.c

示例7: main

//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("numtohost.c");
  RUN_TEST(test_LoopbackNetNonResolve, 9);

  return (UnityEnd());
}
开发者ID:ajinkya93,项目名称:netbsd-src,代码行数:9,代码来源:run-numtohost.c

示例8: main

//=======MAIN=====
int main(void)
{
  Unity.TestFile = "test_LEDSM.c";
  UnityBegin();
  RUN_TEST(test_ledSM_state_will_go_LED_BLINKING_ON_with_button_released, 59);

  return (UnityEnd());
}
开发者ID:jameshomunhoe,项目名称:BlinkingWithButton,代码行数:9,代码来源:test_LEDSM_runner.c

示例9: main

//=======MAIN=====
int main(void)
{
  Unity.TestFile = "test_OperatorEvaluate.c";
  UnityBegin();
  RUN_TEST(test_operator_evaluate_should_calculate_2_PLUS_3, 14);

  return (UnityEnd());
}
开发者ID:jasonchuah93,项目名称:JasonShuntingYard,代码行数:9,代码来源:test_OperatorEvaluate_runner.c

示例10: main

//=======MAIN=====
int main(void)
{
    Unity.TestFile = "test_LED.c";
    UnityBegin();
    RUN_TEST(test_LED_Init_should_initialize_the_LED_OFF, 13);
    RUN_TEST(test_LED_Toggle_should_toggle_the_LED, 25);

    return (UnityEnd());
}
开发者ID:ThrowTheSwitch,项目名称:blinky,代码行数:10,代码来源:test_LED_runner.c

示例11: main

//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("humandate.c");
  RUN_TEST(test_RegularTime, 8);
  RUN_TEST(test_CurrentTime, 9);

  return (UnityEnd());
}
开发者ID:webhost,项目名称:ntp,代码行数:10,代码来源:run-humandate.c

示例12: main

//=======MAIN=====
int main(void)
{
  Unity.TestFile = "test/testdata/mocksample.c";
  UnityBegin();
  RUN_TEST(test_TheFirstThingToTest, 21);
  RUN_TEST(test_TheSecondThingToTest, 43);

  return (UnityEnd());
}
开发者ID:chaicko,项目名称:tdd_book_code,代码行数:10,代码来源:testsample_mock_run1.c

示例13: main

//=======MAIN=====
int main(void)
{
  Unity.TestFile = "test_Coordinate.c";
  UnityBegin();
  RUN_TEST(test_setCoordinate_should_return_proper_coordinates, 9);
  RUN_TEST(test_multiplyCoordinate_should_return_proper_multiplied_coordinates, 27);

  return (UnityEnd());
}
开发者ID:soofatt,项目名称:Coordinate,代码行数:10,代码来源:test_Coordinate_runner.c

示例14: main

//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("bug-2803.c");
  RUN_TEST(test_main, 18);
  RUN_TEST(test_main, 18);

  return (UnityEnd());
}
开发者ID:ajinkya93,项目名称:netbsd-src,代码行数:10,代码来源:run-bug-2803.c

示例15: main

//=======MAIN=====
int main(void)
{
  Unity.TestFile = "test_CommandProcessing.c";
  UnityBegin();
  RUN_TEST(test_InterpretCommandString_should_set_command_to_HELLO_CMD_for_string_HELLO, 8);
  RUN_TEST(test_InterpretCommandString_should_set_command_to_HALT_CMD_for_string_HALT, 18);

  return (UnityEnd());
}
开发者ID:OptecInc,项目名称:FocRot_FW,代码行数:10,代码来源:test_CommandProcessing_runner.c


注:本文中的UnityBegin函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。