mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Migrate from astyle to clang-format (#8464)
This commit is contained in:
committed by
Max Prokhorov
parent
46190b61f1
commit
19b7a29720
@ -3,21 +3,23 @@
|
||||
|
||||
BS_ENV_DECLARE();
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
while(true) {
|
||||
try{
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
BS_RUN();
|
||||
return 0;
|
||||
}catch(...) {
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
printf("Exception\n\n");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("this test runs successfully", "[bluesmoke]")
|
||||
{
|
||||
CHECK(1 + 1 == 2);
|
||||
@ -38,17 +40,12 @@ TEST_CASE("another test which fails and crashes", "[bluesmoke][fail]")
|
||||
REQUIRE(false);
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("third test which should be skipped", "[.]")
|
||||
{
|
||||
FAIL();
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("this test also runs successfully", "[bluesmoke]")
|
||||
{
|
||||
|
||||
}
|
||||
TEST_CASE("this test also runs successfully", "[bluesmoke]") { }
|
||||
|
||||
TEST_CASE("environment variables can be set and read from python", "[bluesmoke]")
|
||||
{
|
||||
@ -57,4 +54,3 @@ TEST_CASE("environment variables can be set and read from python", "[bluesmoke]"
|
||||
CHECK(strcmp(res, "42") == 0);
|
||||
setenv("VAR_FROM_TEST", "24", 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user