Skip to content

Commit

Permalink
misc: more fixes ig?
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Nov 23, 2023
1 parent 6d5ab52 commit db52755
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions base/src/test/java/org/aya/concrete/ParseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;

@SuppressWarnings("UnknownLanguage")
public class ParseTest {
Expand Down Expand Up @@ -176,15 +175,15 @@ private void parseImport(@Language("Aya") String code) {
}

private void parseOpen(@Language("Aya") String code) {
assertTrue(parseStmt(code).last() instanceof Command.Open s && !s.toDoc(AyaPrettierOptions.debug()).debugRender().isEmpty());
assertTrue(parseStmt(code).getLast() instanceof Command.Open s && !s.toDoc(AyaPrettierOptions.debug()).debugRender().isEmpty());
}

private void parseFn(@Language("Aya") String code) {
assertTrue(parseDecl(code).getFirst() instanceof TeleDecl.FnDecl s && !s.toDoc(AyaPrettierOptions.debug()).debugRender().isEmpty());
}

private void parseData(@Language("Aya") String code) {
assertTrue(parseDecl(code).getFirst() instanceof TeleDecl.DataDecl);
assertInstanceOf(TeleDecl.DataDecl.class, parseDecl(code).getFirst());
}

@Test
Expand Down

0 comments on commit db52755

Please sign in to comment.