Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 2387e21

Browse files
committed
tests: update tests for updated log grammar
1 parent db8b324 commit 2387e21

File tree

1 file changed

+2
-2
lines changed
  • android-tree-sitter/src/test/java/com/itsaky/androidide/treesitter

1 file changed

+2
-2
lines changed

android-tree-sitter/src/test/java/com/itsaky/androidide/treesitter/ParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ public void testLogGrammar_logcatLine() {
169169
try (final var parser = new TSParser()) {
170170
parser.setLanguage(TSLanguageLog.newInstance());
171171

172-
final var source = "04-19 09:37:12.217 1384 1527 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.USER_PRESENT flg=0x24200010 } to com.google.android.gms/.auth.setup.devicesignals.LockScreenReceiver";
172+
final var source = "04-19 09:37:12.217 1384 1527 BroadcastQueue: W Background execution not allowed: receiving Intent { act=android.intent.action.USER_PRESENT flg=0x24200010 } to com.google.android.gms/.auth.setup.devicesignals.LockScreenReceiver";
173173

174174
try (final var tree = parser.parseString(source)) {
175175
final var rootNode = tree.getRootNode();
176176
assertThat(rootNode).isNotNull();
177177
assertThat(rootNode.getChildCount()).isGreaterThan(0);
178178
assertThat(rootNode.getNodeString()).isEqualTo(
179-
"(logs (log_line (date) (time) (pid) (tid) (priority) (tag) (message)))");
179+
"(logs (log_line (date) (time) (pid) (tid) (tag) (priority) (message)))");
180180
}
181181
}
182182
}

0 commit comments

Comments
 (0)