use of com.nike.riposte.util.text.parsercombinator.Parser.ParserInput in project riposte by Nike-Inc.
the class ParserTest method test_parser_input_compares_two_different_instances_correctly.
@Test
public void test_parser_input_compares_two_different_instances_correctly() {
ParserInput inputOne = new ParserInput("one", 0);
ParserInput inputTwo = new ParserInput("two", 0);
assertThat(inputOne).isNotEqualTo(inputTwo);
assertThat(inputOne.hashCode()).isNotEqualTo(inputTwo.hashCode());
}
use of com.nike.riposte.util.text.parsercombinator.Parser.ParserInput in project riposte by Nike-Inc.
the class ParserTest method test_parser_input_compares_two_indentical_instances_correctly.
@Test
public void test_parser_input_compares_two_indentical_instances_correctly() {
ParserInput inputOne = new ParserInput("test", 0);
ParserInput inputTwo = new ParserInput("test", 0);
assertThat(inputOne).isEqualTo(inputTwo);
assertThat(inputOne.hashCode()).isEqualTo(inputTwo.hashCode());
}
Aggregations