32_noinc.t
来自「Verilog Parser in Perl」· T 代码 · 共 48 行
T
48 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?