Skip to content

Commit

Permalink
#18 Fix library imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcere committed Jan 6, 2025
1 parent a9efbb0 commit fa6b16a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/test_inline_function.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from hypothesis import given, strategies as st
from hypothesis import given
from parser.cfg_instruction import CFGInstruction
from parser.cfg_block import CFGBlock
from parser.cfg_block_list import CFGBlockList
from parser.cfg_function import CFGFunction
from parser.cfg_object import CFGObject
from parser.cfg_block_actions.inline_function import InlineFunction
from cfg_methods.cfg_block_actions.inline_function import InlineFunction
from utils import cfg_instruction_list


Expand All @@ -21,7 +21,7 @@ def test_inline_function_one_function(self, instructions):
cfg_block_5 = CFGBlock("block_5", instructions[5*split_list_index:6*split_list_index], "terminal", dict())
cfg_block_6 = CFGBlock("block_6", instructions[6*split_list_index:7*split_list_index], "conditional", dict())

function_cfg_block_list = CFGBlockList()
function_cfg_block_list = CFGBlockList("f")
function_cfg_block_list.add_block(cfg_block_0)
function_cfg_block_list.add_block(cfg_block_1)
function_cfg_block_list.add_block(cfg_block_2)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_merge_blocks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from hypothesis import given, strategies as st
from hypothesis import given
from parser.cfg_block import CFGBlock
from parser.cfg_block_list import CFGBlockList
from parser.cfg_block_actions.merge_blocks import MergeBlocks, merged_block_id
from cfg_methods.cfg_block_actions.merge_blocks import MergeBlocks, merged_block_id
from utils import cfg_instruction_list


Expand Down
2 changes: 1 addition & 1 deletion tests/test_split_block.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from hypothesis import given, strategies as st
from parser.cfg_block import CFGBlock
from parser.cfg_block_list import CFGBlockList
from parser.cfg_block_actions.split_block import SplitBlock
from cfg_methods.cfg_block_actions.split_block import SplitBlock
from utils import cfg_instruction_list


Expand Down

0 comments on commit fa6b16a

Please sign in to comment.