Skip to content

Commit ddb553f

Browse files
committed
What about trying hover directly instead of test
1 parent ac8cb80 commit ddb553f

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

analysis/test.sh

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
function exp {
2-
echo "$(dirname $1)/expected/$(basename $1).txt"
3-
}
1+
# function exp {
2+
# echo "$(dirname $1)/expected/$(basename $1).txt"
3+
# }
44

5-
for file in tests/src/*.{res,resi}; do
6-
./rescript-editor-analysis.exe test $file &> $(exp $file)
7-
done
5+
# for file in tests/src/*.{res,resi}; do
6+
# ./rescript-editor-analysis.exe test $file &> $(exp $file)
7+
# done
88

9-
warningYellow='\033[0;33m'
10-
successGreen='\033[0;32m'
11-
reset='\033[0m'
9+
# warningYellow='\033[0;33m'
10+
# successGreen='\033[0;32m'
11+
# reset='\033[0m'
1212

13-
diff=$(git ls-files --modified tests/src/expected)
14-
if [[ $diff = "" ]]; then
15-
printf "${successGreen}✅ No unstaged tests difference.${reset}\n"
16-
else
17-
printf "${warningYellow}⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff}\n${reset}"
18-
git --no-pager diff tests/src/expected
19-
exit 1
20-
fi
13+
# diff=$(git ls-files --modified tests/src/expected)
14+
# if [[ $diff = "" ]]; then
15+
# printf "${successGreen}✅ No unstaged tests difference.${reset}\n"
16+
# else
17+
# printf "${warningYellow}⚠️ There are unstaged differences in tests/! Did you break a test?\n${diff}\n${reset}"
18+
# git --no-pager diff tests/src/expected
19+
# exit 1
20+
# fi
21+
22+
./rescript-editor-analysis.exe hover tests/src/Auto.res 2 15

0 commit comments

Comments
 (0)