| 431 | struct TestVariableImportCorrectness : TestQueue |
| 432 | { |
| 433 | virtual void Run() |
| 434 | { |
| 435 | nullcTerminate(); |
| 436 | nullcInit(MODULE_PATH); |
| 437 | nullcInitDynamicModule(); |
| 438 | |
| 439 | const char *testVariableImportCorrectness = |
| 440 | "import std.dynamic;\r\n\ |
| 441 | int x = 2;\r\n\ |
| 442 | eval(\"x = 4;\");\r\n\ |
| 443 | { int n, m; }\r\n\ |
| 444 | int y = 3;\r\n\ |
| 445 | eval(\"y = 8;\");\r\n\ |
| 446 | return x * 10 + y;"; |
| 447 | for(unsigned t = 0; t < 2; t++) |
| 448 | { |
| 449 | if(!Tests::testExecutor[t]) |
| 450 | continue; |
| 451 | testsCount[t]++; |
| 452 | if(Tests::RunCode(testVariableImportCorrectness, t, "48", "Variable import correctness")) |
| 453 | testsPassed[t]++; |
| 454 | } |
| 455 | } |
| 456 | }; |
| 457 | TestVariableImportCorrectness testVariableImportCorrectness; |
| 458 |
nothing calls this directly
no test coverage detected