Commit Graph

7 Commits

Author SHA1 Message Date
Jeremiah C Leary 1948b70444 Updates for Codacy issues:
Removing trialing whitespaces.
2019-03-10 12:19:16 -05:00
Jeremiah C Leary 183b9f5c18 Updates for issue #193
The class vhdlFile now takes a list instead of a file name.
This removes the responsibility of reading the file from the vhdlFile class.
Which allows for better integration into other tools.
2019-02-24 12:49:25 -06:00
Ryan Fitzsimon abe1cb1247 Use assertSequenceEqual to compare list and range
Using assertEqual was causing the check to fail under Python 3, where
range() returns an object rather than a list.
2018-10-31 23:45:44 +10:00
Jeremiah C Leary 846054db02 Allowing for instances to be declared in blocks. 2018-09-13 22:07:23 -05:00
Ryan Fitzsimon ace1736767 Simplify block test
Use list comprehensions rather than iterating and appending.

Don't worry about limiting the number of lines considered in
test_block_indent_assignment(). The other tests don't do this and the
comparison will work as expected even if the lists are different sizes.

Remove unnecessary comments. It is obvious that the result of a list
comprehension will be a list and that assertEqual will compare its two
arguments.
2018-09-13 15:49:50 +10:00
Ryan Fitzsimon 591ab27a7e Add type and constant to the block unit test
Add an array type and constant to the block unit test input file to
increase the range of scenarios covered.

Change the entity name from "ENTITY" to "BLOCK_EXAMPLE" so that it does
not conflict with the keyword.

Add an entity declaration so that the file is a valid standalone VHDL
design.
2018-09-13 15:49:30 +10:00
Jeremiah C Leary 510ba10e8c Updates for issue #161
Adding initial support for blocks:

  1)  block structures are now detected
  2)  indenting enforced

NOTE:  extensive testing of structures within a block have not been tested.
2018-09-12 20:53:05 -05:00