In the range of test cases, each tc has an expected bool value which determines if the fillLeaves() would give an error or not.
If tc.expected is set to false, fillLeaves() returns an error; however, before reaching the intended block where this error is caught, i.e., require.Error(t, err), it encounters a require.NoError(t, err). This would cause the test to fail when it was expected to pass since the testcase was pre-determined to fail.
https://github.com/initia-labs/opinit-bots/blob/640649b97cbfa5782925b7dc8c0b62b8fa5367f6/merkle/merkle_test.go#L108-L222
