mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-08-29 17:57:30 +00:00
Expose IsTest Method (#1)
This commit is contained in:
@@ -169,6 +169,14 @@ public class EnryTest {
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isTest() {
|
||||
assertTrue(Enry.isTest("test_foo.py"));
|
||||
assertTrue(Enry.isTest("test/java/tech/sourced/enry/EnryTest.java"));
|
||||
assertFalse(Enry.isTest("foo.py"));
|
||||
assertFalse(Enry.isTest("src/java/foo.java"));
|
||||
}
|
||||
|
||||
void assertGuess(String language, boolean safe, Guess guess) {
|
||||
assertEquals(language, guess.language);
|
||||
assertEquals(safe, guess.safe);
|
||||
|
Reference in New Issue
Block a user