src/ez/gate.bend checks
raw source on the hub · import 0x74799d3f846634a3d7461d4336d7c9d4/src/ez/gate.bend as Gate
ez/gate: what a test file says its run must print. A test states that in a
#| trailer, one line for each line of output, and ez test holds the run
to it.
This file imports nothing but Base, so a law about the trailer walk costs a compile of that and no more.
1 import
import Base
Definitions
def want.put source · line 10 · raw
@is_want:Bool -> @line:String -> @rest:List<&2, String> -> List<&2, String>
a trailer line kept, with its #| dropped, or a source line ignored
def want source · line 18 · raw
@ls:List<&2, String> -> List<&2, String>
the #| lines of a source file, in order
def trailer source · line 26 · raw
@text:String -> String
what a test file says its run must print