📄 32_noinc.t
字号:
#!/usr/bin/perl -w# DESCRIPTION: Perl ExtUtils: Type 'make test' to test this package## Copyright 2000-2009 by Wilson Snyder. This program is free software;# you can redistribute it and/or modify it under the terms of either the GNU# Lesser General Public License or the Perl Artistic License.use IO::File;use strict;use Test;BEGIN { plan tests => 7 }BEGIN { require "t/test_utils.pl"; }#######################################################################use Verilog::Getopt;use Verilog::Preproc;ok(1);# Check we get erroreval { check();};ok ($@ =~ /32_noinc.v:\d+: Cannot open notfound/);check(include_open_nonfatal=>1);ok (1);# Check no errorsub check { my @opts = (@_); my $opt = new Verilog::Getopt; my $pp = new Verilog::Preproc (options=>$opt, @opts); ok(1); #$pp->debug(9); $pp->open("t/32_noinc.v"); ok(1); while (defined(my $line = $pp->getline())) { #print "LINE: $line"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -