Skip to content

Commit

Permalink
Added ASCII drawing for control flow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RealA10N committed Dec 17, 2024
1 parent 7c73e75 commit 3199544
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions control_flow/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ func TestBuildEmpty(t *testing.T) {
}

func TestSingleBlock(t *testing.T) {
// 0 -> 1 -> 2

instructions := []control_flow.SupportsControlFlow{
&TestInstruction{NextInstructionIndices: []uint{1}},
&TestInstruction{NextInstructionIndices: []uint{2}},
Expand All @@ -35,6 +37,9 @@ func TestSingleBlock(t *testing.T) {
}

func TestSimpleLoop(t *testing.T) {
// 0 -> 1 -> 2
// ^----+

instructions := []control_flow.SupportsControlFlow{
&TestInstruction{NextInstructionIndices: []uint{1}},
&TestInstruction{NextInstructionIndices: []uint{2}},
Expand Down

0 comments on commit 3199544

Please sign in to comment.