Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions ledger/alonzo/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,26 +462,20 @@ func TestNewAlonzoGenesisFromReader(t *testing.T) {
"Expected LovelacePerUtxoWord 34482, got %d",
result.LovelacePerUtxoWord,
)
} else {
t.Logf("LovelacePerUtxoWord is correct: %d", result.LovelacePerUtxoWord)
}

if result.ExecutionPrices.Steps.Rat.Cmp(big.NewRat(721, 10000)) != 0 {
t.Errorf(
"Unexpected prSteps: got %v, expected 721/10000",
result.ExecutionPrices.Steps.Rat,
)
} else {
t.Logf("prSteps is correct: %v", result.ExecutionPrices.Steps.Rat)
}

if result.ExecutionPrices.Mem.Rat.Cmp(big.NewRat(577, 10000)) != 0 {
t.Errorf(
"Unexpected prMem: got %v, expected 577/10000",
result.ExecutionPrices.Mem.Rat,
)
} else {
t.Logf("prMem is correct: %v", result.ExecutionPrices.Mem.Rat)
}

expectedCostModels := map[string]map[string]int{
Expand All @@ -496,9 +490,5 @@ func TestNewAlonzoGenesisFromReader(t *testing.T) {
result.CostModels,
expectedCostModels,
)
} else {
t.Logf("CostModels are correct")
}

t.Logf("AlonzoGenesis JSON decoding test completed successfully.")
}
2 changes: 0 additions & 2 deletions ledger/byron/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,5 @@ func TestNewByronGenesisFromReader(t *testing.T) {
result,
expected,
)
} else {
t.Logf("ByronGenesis decoded correctly")
}
}
2 changes: 0 additions & 2 deletions ledger/common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ func TestCertificateTypeMethods(t *testing.T) {
got,
tt.expected,
)
} else {
t.Logf("PASS: %s -> Type() = %d, expected = %d \n", tt.name, got, tt.expected)
}
})
}
Expand Down
2 changes: 0 additions & 2 deletions ledger/conway/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,5 @@ func TestNewConwayGenesisFromReader(t *testing.T) {
expected,
actual,
)
} else {
t.Logf("ConwayGenesis decoded correctly and matches expected structure")
}
}
Loading