Skip to content

Commit 61be547

Browse files
committed
reorder test functions
1 parent 30613d3 commit 61be547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/contracts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ func BenchmarkPrecompiledBn256ScalarMul(b *testing.B) { benchJson("bn256ScalarMu
262262

263263
// Tests the sample inputs from the elliptic curve pairing check EIP 197.
264264
func TestPrecompiledBn256Pairing(t *testing.T) { testJson("bn256Pairing", "08", t) }
265+
func TestPrecompiledBn256PairingFail(t *testing.T) { testJsonFail("bn256Pairing", "08", t) }
265266
func BenchmarkPrecompiledBn256Pairing(b *testing.B) { benchJson("bn256Pairing", "08", b) }
266267

267268
func TestPrecompiledBlake2F(t *testing.T) { testJson("blake2F", "09", t) }
@@ -326,7 +327,6 @@ func BenchmarkPrecompiledBLS12381MapG1(b *testing.B) { benchJson("blsMapG1"
326327
func BenchmarkPrecompiledBLS12381MapG2(b *testing.B) { benchJson("blsMapG2", "12", b) }
327328

328329
// Failure tests
329-
func TestPrecompiledBn256PairingFail(t *testing.T) { testJsonFail("bn256Pairing", "08", t) }
330330
func TestPrecompiledBLS12381G1AddFail(t *testing.T) { testJsonFail("blsG1Add", "0a", t) }
331331
func TestPrecompiledBLS12381G1MulFail(t *testing.T) { testJsonFail("blsG1Mul", "0b", t) }
332332
func TestPrecompiledBLS12381G1MultiExpFail(t *testing.T) { testJsonFail("blsG1MultiExp", "0c", t) }

0 commit comments

Comments
 (0)