package artifact
import "testing"
// A check-in in a sub-manifest store lists S cards where a flat one
// lists F, as every check-in of netbsd-src does. It is a manifest: read
// as one, the fold skips it without a parse, as it skips flat ones.
func TestAnSCardCheckinIsAManifest(t *testing.T) {
raw := []byte("C initial\\simport\n" +
"D 1993-03-21T09:45:37\n" +
"P 97a86ea938482eb15026533cdc560ca53c2e9039424db7747f2eb136f8f4d05e\n" +
"S Makefile 149872c845b50c8f542cd729ab2bae46cbd5f487f7c09fcf8a61e7cf6c324fe7\n" +
"U dmestas\n" +
"Z 00000000000000000000000000000000\n")
isM, decided := QuickIsManifest(raw)
if !decided || !isM {
t.Errorf("FAIL: an S-card check-in read as manifest=%v decided=%v", isM, decided)
}
}