Closed drwcx closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.84%. Comparing base (
cad562f
) to head (71e28fb
). Report is 22 commits behind head on master.
With patch commented out the unit test fails:
Test project /home/morty/slang/build
Start 1: unittests
1/6 Test #1: unittests ........................***Failed 0.69 sec
data/file_uses_define_in_file_with_no_cr.sv:2:5: error: member not allowed at compilation unit scope
initial begin
^~~~~~~~~~~~~
data/file_uses_define_in_file_with_no_cr.sv:3:32: error: expected ','
$display("Something: %d", `SOMETHING);
^
data/file_with_no_cr.sv:1:23: note: expanded from macro 'SOMETHING'
`define SOMETHING 1337
^
data/file_uses_define_in_file_with_no_cr.sv:3:44: error: expected ')'
$display("Something: %d", `SOMETHING);
^
data/file_uses_define_in_file_with_no_cr.sv:3:14: note: to match this '('
$display("Something: %d", `SOMETHING);
^
data/file_uses_define_in_file_with_no_cr.sv:5:1: error: expected member
endmodule
^~~~~~~~~
Randomness seeded to: 420428605
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unittests is a Catch2 v3.5.3 host application.
Run with -? for options
-------------------------------------------------------------------------------
Driver single-unit parsing files with no EOL
-------------------------------------------------------------------------------
/home/morty/slang/tests/unittests/DriverTests.cpp:244
...............................................................................
/home/morty/slang/tests/unittests/DriverTests.cpp:253: FAILED:
CHECK( driver.reportParseDiags() )
with expansion:
false
===============================================================================
test cases: 1590 | 1589 passed | 1 failed
assertions: 18619 | 18618 passed | 1 failed
This is a fix for the issue described in #914.
Functional evidence:
Before: