Skip to content

Commit

Permalink
update include bool var assign
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 21, 2024
1 parent a86dd10 commit c4f35da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/tools/vtest-self.v
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,11 @@ fn main() {
}
}
}
include_vlib := has_vlib_opt || (!has_vlib_opt && !has_cmd_opt)
include_cmd := has_cmd_opt || (!has_vlib_opt && !has_cmd_opt)
include_vlib, include_cmd := if !has_vlib_opt && !has_cmd_opt {
true, true
} else {
has_vlib_opt, has_cmd_opt
}
title := 'testing ' + match true {
include_cmd && include_vlib { 'vlib & cmd' }
include_vlib { 'vlib' }
Expand Down

0 comments on commit c4f35da

Please sign in to comment.