package viral

import "testing"

func TestPassesMissionQualityCandidate_verifiedLowerBar(t *testing.T) {
	if !PassesMissionQualityCandidate("轉職面試技巧分享心得", 12, 2, 40, true, 0, nil) {
		t.Fatal("verified author should pass with moderate engagement")
	}
}

func TestPassesMissionQualityCandidate_unverifiedStricter(t *testing.T) {
	if PassesMissionQualityCandidate("轉職面試技巧分享心得", 12, 2, 40, false, 0, nil) {
		t.Fatal("unverified author should not pass with low engagement")
	}
	if !PassesMissionQualityCandidate("轉職面試技巧分享心得", 25, 4, 65, false, 0, nil) {
		t.Fatal("unverified author should pass with strong engagement")
	}
}
