From 089cb4a9e7bd51ddf2fd247858ed363c8c2ca9a5 Mon Sep 17 00:00:00 2001 From: ggrieco-tob Date: Fri, 10 May 2019 11:57:23 -0300 Subject: [PATCH] fixed test --- scripts/travis_test_simil.sh | 2 +- tests/simil/test_1.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/travis_test_simil.sh b/scripts/travis_test_simil.sh index d520ea748..ccf332800 100755 --- a/scripts/travis_test_simil.sh +++ b/scripts/travis_test_simil.sh @@ -8,7 +8,7 @@ pip3.6 install https://github.com/facebookresearch/fastText/archive/0.2.0.zip ### Test slither-simil DIR_TESTS="tests/simil" -slither-simil info "" --filename $DIR_TESTS/../complex_func.sol --contract Complex --fname complexExternalWrites --solc solc-0.4.25 > test_1.txt 2>&1 +slither-simil info "" --filename $DIR_TESTS/../complex_func.sol --fname Complex.complexExternalWrites --solc solc-0.4.25 > test_1.txt 2>&1 DIFF=$(diff test_1.txt "$DIR_TESTS/test_1.txt") if [ "$DIFF" != "" ] then diff --git a/tests/simil/test_1.txt b/tests/simil/test_1.txt index f722b9880..1c6a7bb7e 100644 --- a/tests/simil/test_1.txt +++ b/tests/simil/test_1.txt @@ -1,2 +1,2 @@ -Function complexExternalWrites in contract Complex is encoded as: -new_contract (local_solc_variable(default)):=(temporary_variable) high_level_call high_level_call high_level_call high_level_call high_level_call new_contract (local_solc_variable(default)):=(temporary_variable) high_level_call new_contract (local_solc_variable(default)):=(temporary_variable) solidity_call(keccak256()) type_conversion(bytes4) low_level_call new_contract (local_solc_variable(default)):=(temporary_variable) solidity_call(keccak256()) type_conversion(bytes4) low_level_call +INFO:Slither-simil:Function complexExternalWrites in contract Complex is encoded as: +INFO:Slither-simil:new_contract (local_solc_variable(default)):=(temporary_variable) high_level_call high_level_call high_level_call high_level_call high_level_call new_contract (local_solc_variable(default)):=(temporary_variable) high_level_call new_contract (local_solc_variable(default)):=(temporary_variable) solidity_call(keccak256()) type_conversion(bytes4) low_level_call new_contract (local_solc_variable(default)):=(temporary_variable) solidity_call(keccak256()) type_conversion(bytes4) low_level_call