Skip to content

Commit

Permalink
Add a test for reported bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
knewjade committed Dec 11, 2022
1 parent 4adfbe9 commit 9cc89b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
1 change: 1 addition & 0 deletions kicks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The kicks here are for testing. The kicks for artifacts is at [distribution/kicks](/distribution/kicks).
2 changes: 2 additions & 0 deletions kicks/jstris180.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This kick was made by @metallicLurker in PC Gang.

L.NE=(0,0)(-1,0)(-1,+1)(0,-2)(-1,-2)
L.ES=(0,0)(+1,0)(+1,-1)(0,+2)(+1,+2)
L.SW=(0,0)(+1,0)(+1,+1)(0,-2)(+1,-2)
Expand Down
25 changes: 9 additions & 16 deletions src/test/java/_usecase/cover/CoverTetfuCaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1156,22 +1156,15 @@ void case18OrPC() throws Exception {
void case20() throws Exception {
String fumen = "v115@3gA8GeE8BeA8AeD8DeF8CeG8AeD8JetLJ";

// {
// String command = String.format("cover --tetfu %s --patterns T", fumen);
// Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
//
// // Log
// int all = 1;
// assertThat(log.getOutput()).contains(Messages.foundSolutions(0, all, fumen));
// }
// {
// String command = String.format("cover --tetfu %s --patterns T --drop 180 --kicks @jstris180", fumen);
// Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
//
// // Log
// int all = 1;
// assertThat(log.getOutput()).contains(Messages.foundSolutions(1, all, fumen));
// }

{
String command = String.format("cover --tetfu %s --patterns T --drop 180 --kicks @nullpomino180 --mode tsm", fumen);
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));

// Log
int all = 1;
assertThat(log.getOutput()).contains(Messages.foundSolutions(0, all, fumen));
}
{
String command = String.format("cover --tetfu %s --patterns T --drop 180 --kicks @jstris180 --mode tsm", fumen);
Log log = RunnerHelper.runnerCatchingLog(() -> EntryPointMain.main(command.split(" ")));
Expand Down
1 change: 1 addition & 0 deletions theme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The themes here are for testing. The themes for artifacts is at [distribution/theme](/distribution/theme).

0 comments on commit 9cc89b5

Please sign in to comment.