This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
male(george). | |
male(john). | |
male(robert). | |
female(barbara). | |
female(christine). | |
female(yolanda). | |
person(X) :- male(X). | |
person(X) :- female(X). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import static java.util.Objects.isNull; | |
import static org.assertj.core.api.Assertions.assertThat; | |
import static org.hamcrest.Matchers.containsInAnyOrder; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.assertj.core.api.HamcrestCondition; |