Skip to content

Commit 2103e9f

Browse files
author
Aaron Blankstein
committed
test: add some comments for test changes
1 parent a1d967b commit 2103e9f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/vm/tests/costs.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ fn test_tracked_costs(prog: &str, epoch: StacksEpochId) -> ExecutionCost {
695695
}
696696

697697
#[test]
698+
// test each individual cost function can be correctly invoked as
699+
// Clarity code executes in Epoch 2.00
698700
fn test_all() {
699701
let baseline = test_tracked_costs("1", StacksEpochId::Epoch20);
700702

@@ -706,6 +708,8 @@ fn test_all() {
706708
}
707709

708710
#[test]
711+
// test each individual cost function can be correctly invoked as
712+
// Clarity code executes in Epoch 2.05
709713
fn epoch_205_test_all() {
710714
let baseline = test_tracked_costs("1", StacksEpochId::Epoch2_05);
711715

src/vm/tests/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ impl HeadersDB for UnitTestHeaderDB {
103103
{
104104
Some(BITCOIN_REGTEST_FIRST_BLOCK_TIMESTAMP as u64)
105105
} else {
106+
// for non-genesis blocks, just pick a u64 value that will increment in most
107+
// unit tests as blocks are built (most unit tests construct blocks using
108+
// incrementing high order bytes)
106109
Some(1 + 10 * (id_bhh.as_bytes()[0] as u64))
107110
}
108111
}

0 commit comments

Comments
 (0)