Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloamadeu committed Apr 8, 2020
1 parent abf9e50 commit 3ab952e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/test/java/org/cactoos/io/TempFileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.hamcrest.core.IsEqual;
import org.junit.Test;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.EndsWith;
import org.llorllale.cactoos.matchers.MatcherOf;
import org.llorllale.cactoos.matchers.StartsWith;

Expand All @@ -40,6 +41,7 @@
*
* @since 1.0
* @checkstyle JavadocMethodCheck (500 lines)
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
*/
public final class TempFileTest {

Expand Down Expand Up @@ -112,8 +114,8 @@ public void createFileWithSuffix() throws Exception {
new Assertion<>(
"File must be created with the given suffix",
new TextOf(file.value().getFileName().toString()),
new StartsWith(suffix)
);
new EndsWith(suffix)
).affirm();
}
}
}
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/io/UncheckedBytesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ public void worksNormallyWhenNoExceptionIsThrown() throws Exception {
Matchers.equalTo(
new BytesOf(source).asBytes()
)
);
).affirm();
}
}

3 comments on commit 3ab952e

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 3ab952e Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1235-b5541bca disappeared from src/test/java/org/cactoos/io/package-info.java, that's why I closed #1331. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 3ab952e Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1331-b5541bca discovered in src/test/java/org/cactoos/io/package-info.java and submitted as #1340. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 3ab952e Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 1331-806191f6 discovered in src/test/java/org/cactoos/io/TeeInputFromBytesTest.java and submitted as #1341. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.