Skip to content

Commit

Permalink
#2433: spurious network
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Aug 24, 2023
1 parent d71480a commit ab668fc
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions eo-runtime/src/test/java/EOorg/EOeolang/EOintTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,3 @@
* @checkstyle PackageNameCheck (10 lines)
*/
package EOorg.EOeolang;

import org.eolang.Data;
import org.eolang.Phi;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;

/**
* Test case for {@link EOint}.
*
* @since 0.1
* @checkstyle TypeNameCheck (4 lines)
*/
public class EOintTest {

@Test
void hasEqualHashes() {
final Phi left = new Data.ToPhi(42L);
final Phi right = new Data.ToPhi(42L);
MatcherAssert.assertThat(
left.hashCode(),
Matchers.equalTo(right.hashCode())
);
}

@Test
void hasHashEvenWithoutData() {
final Phi phi = new EOint(Phi.Φ);
MatcherAssert.assertThat(
phi.hashCode(),
Matchers.greaterThan(0)
);
}
}

0 comments on commit ab668fc

Please sign in to comment.