tests: add select -unset tests

This commit is contained in:
Eddie Hung 2020-04-14 10:58:51 -07:00
parent 254d38ca67
commit 2623e335cc
2 changed files with 20 additions and 0 deletions

10
tests/select/unset.ys Normal file
View File

@ -0,0 +1,10 @@
read_verilog <<EOT
module top(input i, output o);
assign o = i;
endmodule
EOT
select -set foo w:*
select -assert-any @foo
select -unset foo
logger -expect error "Selection '\\foo' does not exist!" 1
select -unset foo

10
tests/select/unset2.ys Normal file
View File

@ -0,0 +1,10 @@
read_verilog <<EOT
module top(input i, output o);
assign o = i;
endmodule
EOT
select -set foo w:*
select -assert-any @foo
select -unset foo
logger -expect error "Selection @foo is not defined!" 1
select -list @foo