master > master: code -> aufräumung

This commit is contained in:
RD 2021-05-09 18:21:36 +02:00
parent d4a3f2177b
commit b62d40cf9f
5 changed files with 15 additions and 16 deletions

View File

@ -1,9 +1,9 @@
# expr = "A0"
# expr = "! A0"
# expr = "( A0 && A1 )"
# expr = "( A0 || A1 )"
# expr = "( A0 -> A1 )"
expr = "( A0 -> ((A0 && A3 && A4) || ! A2) )"
# expr = "( A0 -> ((A0 && A3) || A2) )"
# expr = "(( {G} || !{G} ) -> A5)"
interpretation = "[ 'A0', 'A2' ]"
# expr = 'A0'
# expr = '! A0'
# expr = '( A0 && A1 )'
# expr = '( A0 || A1 )'
# expr = '( A0 -> A1 )'
expr = '( A0 -> ((A0 && A3 && A4) || ! A2) )'
# expr = '( A0 -> ((A0 && A3) || A2) )'
# expr = '(( {G} || !{G} ) -> A5)'
interpretation = '[ "A0", "A2" ]'

View File

@ -50,7 +50,6 @@ def main():
display_results(expr, fml, I, results);
return;
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# SONSTIGE METHODEN
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -12,7 +12,7 @@ function call_python() {
[ "$OSTYPE" == "msys" ] && py -3 $@ || python3 $@;
}
function run_check_requirements() {
function check_requirements() {
call_python -m pip install "$( cat requirements )" >> /dev/null;
}
@ -25,7 +25,7 @@ function run_code() {
################################
# Kann auskommentiert werden, wenn nötige Module schon installiert:
run_check_requirements;
check_requirements;
# Code ausführen:
run_code
run_code;

View File

@ -12,7 +12,7 @@ function call_python() {
[ "$OSTYPE" == "msys" ] && py -3 $@ || python3 $@;
}
function run_check_requirements() {
function check_requirements() {
call_python -m pip install "$( cat requirements )" >> /dev/null;
}
@ -32,7 +32,7 @@ function run_unittests(){
################################
# Kann auskommentiert werden, wenn nötige Module schon installiert:
run_check_requirements;
check_requirements;
# Code testen (unittests):
run_unittests;