Skip to content

Commit

Permalink
Simplify a couple more truth shortcuts
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=223048719
  • Loading branch information
blickly authored and lauraharker committed Nov 28, 2018
1 parent 7a40a41 commit 4f95766
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ public void helperInlineReferenceToFunction(
Node externsRoot = parseRoot.getFirstChild();
final Node tree = parseRoot.getLastChild();
assertThat(tree).isNotNull();
assertThat(tree != externsRoot).isTrue();
assertThat(tree).isNotSameAs(externsRoot);

final Node expectedRoot = parseExpected(new Compiler(), expectedResult);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ public void testHashCode() {
VirtualFile same = new VirtualFile("name", "code");
VirtualFile other = new VirtualFile("otherName", "otherCode");
assertThat(same.hashCode()).isEqualTo(vf.hashCode());
assertThat(vf.hashCode() == other.hashCode()).isFalse();
assertThat(vf.hashCode()).isNotEqualTo(other.hashCode());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testEmpty() {
public void testAdd() {
union.add("foo");
union.add("bar");
assertThat(null != union.find("foo")).isTrue();
assertThat(union.find("foo")).isNotNull();
assertThat(union.allEquivalenceClasses()).hasSize(2);
}

Expand Down

0 comments on commit 4f95766

Please sign in to comment.