Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/test/java/com/github/underscore/ChainingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ void chainObj() {
.sortBy(item -> (Integer) item.get("age"))
.map(item -> item.get("name") + " is " + item.get("age"))
.first()
.item()
.toString();
.item();
assertEquals("moe is 21", youngest);
new Underscore<>(stooges).of();
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/github/underscore/UnderscoreTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void push() {
@Test
void pop() {
assertEquals("c", Underscore.pop(asList("a", "b", "c")).getKey());
assertEquals("c", new Underscore<>(asList("a", "b", "c")).pop().getKey().toString());
assertEquals("c", new Underscore<>(asList("a", "b", "c")).pop().getKey());
assertEquals("c", Underscore.chain(asList("a", "b", "c")).pop().item().getKey());
}

Expand All @@ -190,7 +190,7 @@ void pop() {
@Test
void shift() {
assertEquals("a", Underscore.shift(asList("a", "b", "c")).getKey());
assertEquals("a", new Underscore<>(asList("a", "b", "c")).shift().getKey().toString());
assertEquals("a", new Underscore<>(asList("a", "b", "c")).shift().getKey());
assertEquals("a", Underscore.chain(asList("a", "b", "c")).shift().item().getKey());
}

Expand Down
Loading