blob: 3fa8fc9de604284a6060fc5932ed3ead9269fb01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package rosa_test
import (
"testing"
"hakurei.app/internal/rosa"
"hakurei.app/pkg"
)
func TestLLVMInputs(t *testing.T) {
const wantInputCount = 472
_, llvm := rosa.MustLoad(rosa.H("llvm"))
var n int
for range pkg.Inputs(llvm) {
n++
}
if n != wantInputCount {
t.Errorf("Inputs: %d, want %d", n, wantInputCount)
}
}
|