Skip to content

Commit

Permalink
test-fix(ditt): provide correct graph for testing (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigalasr committed Nov 18, 2024
1 parent 03aeea7 commit 52e98f6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,13 @@ if(TRUE) {
}
x`, emptyGraph()
.defineVariable('1@x', 'x', { definedBy: ['1@1', '1@<-'] })
.call('1@<-', '<-', [argumentInCall('1@x'), argumentInCall('1@1')], { returns: ['1@x'] })
.call('1@<-', '<-', [argumentInCall('1@x'), argumentInCall('1@1')], { returns: ['1@x'], onlyBuiltIn: true })
.constant('1@1')
.constant('2@TRUE')
.call('2@if', 'if', [argumentInCall('2@TRUE'), argumentInCall('2@{')], { reads: ['2@TRUE'], returns: ['2@{'] })
.call('2@{', '{', [argumentInCall('3@<-')], { returns: ['3@<-'] })
.call('2@if', 'if', [argumentInCall('2@TRUE'), argumentInCall('$9')], { reads: ['2@TRUE'], returns: ['$9'], onlyBuiltIn: true })
.call('$9', '{', [argumentInCall('3@<-')], { returns: ['3@<-'], onlyBuiltIn: true })
.defineVariable('3@x', 'x', { definedBy: ['3@3', '3@<-'] })
.call('3@<-', '<-', [argumentInCall('3@3'), argumentInCall('3@x')], { returns: ['3@x'] })
.call('3@<-', '<-', [argumentInCall('3@3'), argumentInCall('3@x')], { returns: ['3@x'], onlyBuiltIn: true })
.constant('3@3')
.reads('7@x', '3@x')
.use('7@x')
Expand Down

0 comments on commit 52e98f6

Please sign in to comment.