- Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
A-compatibilityArea: compatibilityArea: compatibilityA-compilerArea: compilerArea: compilerT-featureType: featureType: featureT-to-discussType: requires discussionType: requires discussion
Description
Component
Forge
Describe the feature you would like
src/MathUtil.yul
function min(a, b) -> minimum { minimum := a if lt(b, a) { minimum := b } }test/MathUtil.t.yul
import "../src/MathUtil.yul" import "forge-std/Test.yul" // Doesn't exist yet but we can add this function test_min() { assert_eq(2, min(4, 2)) }forge test --strict-assembly should be able to run this
Additional context
I'm working on a Yul project. Since there is no Yul test right now we have to package every Yul function we actually use into Solidity and use a preprocessing script to handle Yul imports from a different file. We really shouldn't have to do this.
Metadata
Metadata
Assignees
Labels
A-compatibilityArea: compatibilityArea: compatibilityA-compilerArea: compilerArea: compilerT-featureType: featureType: featureT-to-discussType: requires discussionType: requires discussion
Type
Projects
Status
Backlog