Skip to content

Commit

Permalink
fix: avoid ignoring test resources (fixes ReVanced#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Mar 20, 2022
1 parent ded2538 commit d5a3c76
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,5 @@ gradle-app.setting
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties

# Avoid ignoring test resources
!src/test/resources/*
14 changes: 14 additions & 0 deletions src/test/kotlin/net/revanced/patcher/util/TestUtil.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package net.revanced.patcher.util

import org.objectweb.asm.tree.AbstractInsnNode
import kotlin.test.assertTrue

object TestUtil {
fun <T: AbstractInsnNode> assertNodeEqual(a: T, b: T) {
assertTrue()
}

private fun AbstractInsnNode.nodeString(): String {

}
}
Binary file added src/test/resources/test1.jar
Binary file not shown.

0 comments on commit d5a3c76

Please sign in to comment.