From 1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 5 Oct 2016 23:55:47 +0200 Subject: tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1 Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'. --- tests/block_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/block_test.go') diff --git a/tests/block_test.go b/tests/block_test.go index 448f2bd76..4334a7462 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -219,3 +219,22 @@ func TestDAOBcTheDao(t *testing.T) { t.Fatal(err) } } + +func TestHomesteadBcExploit(t *testing.T) { + err := RunBlockTest(big.NewInt(0), nil, filepath.Join(blockTestDir, "Homestead", "bcExploitTest.json"), BlockSkipTests) + if err != nil { + t.Fatal(err) + } +} +func TestHomesteadBcShanghaiLove(t *testing.T) { + err := RunBlockTest(big.NewInt(0), nil, filepath.Join(blockTestDir, "Homestead", "bcShanghaiLove.json"), BlockSkipTests) + if err != nil { + t.Fatal(err) + } +} +func TestHomesteadBcSuicideIssue(t *testing.T) { + err := RunBlockTest(big.NewInt(0), nil, filepath.Join(blockTestDir, "Homestead", "bcSuicideIssue.json"), BlockSkipTests) + if err != nil { + t.Fatal(err) + } +} -- cgit