Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adespawn committed Mar 11, 2024
1 parent 5e05c9b commit bba4865
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Empty file.
4 changes: 4 additions & 0 deletions tests/packages/gen/prog/geningen5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
using namespace std;

int main() {
#ifdef _INGEN
ofstream f("gen1.in");
f << "1 2\n";
f.close();

f.open("gen2.in");
f << "2 3\n";
f.close();
#else
This should not compile
#endif
}
Empty file.
4 changes: 4 additions & 0 deletions tests/packages/wer/prog/werinwer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using namespace std;

int main() {
#ifdef _INWER
int n, a;
cin >> n;
for (int i = 0; i < n; i++) {
Expand All @@ -16,4 +17,7 @@ int main() {

cout << "OK" << endl << "Group " << n - 1 << endl;
return 0;
#else
This should not compile
#endif
}

0 comments on commit bba4865

Please sign in to comment.