master > master: code -> aufräumung
This commit is contained in:
parent
d4a3f2177b
commit
b62d40cf9f
@ -1,9 +1,9 @@
|
|||||||
# expr = "A0"
|
# expr = 'A0'
|
||||||
# expr = "! A0"
|
# expr = '! A0'
|
||||||
# expr = "( A0 && A1 )"
|
# expr = '( A0 && A1 )'
|
||||||
# expr = "( A0 || A1 )"
|
# expr = '( A0 || A1 )'
|
||||||
# expr = "( A0 -> A1 )"
|
# expr = '( A0 -> A1 )'
|
||||||
expr = "( A0 -> ((A0 && A3 && A4) || ! A2) )"
|
expr = '( A0 -> ((A0 && A3 && A4) || ! A2) )'
|
||||||
# expr = "( A0 -> ((A0 && A3) || A2) )"
|
# expr = '( A0 -> ((A0 && A3) || A2) )'
|
||||||
# expr = "(( {G} || !{G} ) -> A5)"
|
# expr = '(( {G} || !{G} ) -> A5)'
|
||||||
interpretation = "[ 'A0', 'A2' ]"
|
interpretation = '[ "A0", "A2" ]'
|
||||||
|
@ -50,7 +50,6 @@ def main():
|
|||||||
display_results(expr, fml, I, results);
|
display_results(expr, fml, I, results);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# SONSTIGE METHODEN
|
# SONSTIGE METHODEN
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -12,7 +12,7 @@ function call_python() {
|
|||||||
[ "$OSTYPE" == "msys" ] && py -3 $@ || python3 $@;
|
[ "$OSTYPE" == "msys" ] && py -3 $@ || python3 $@;
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_check_requirements() {
|
function check_requirements() {
|
||||||
call_python -m pip install "$( cat requirements )" >> /dev/null;
|
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:
|
# Kann auskommentiert werden, wenn nötige Module schon installiert:
|
||||||
run_check_requirements;
|
check_requirements;
|
||||||
|
|
||||||
# Code ausführen:
|
# Code ausführen:
|
||||||
run_code
|
run_code;
|
||||||
|
@ -12,7 +12,7 @@ function call_python() {
|
|||||||
[ "$OSTYPE" == "msys" ] && py -3 $@ || python3 $@;
|
[ "$OSTYPE" == "msys" ] && py -3 $@ || python3 $@;
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_check_requirements() {
|
function check_requirements() {
|
||||||
call_python -m pip install "$( cat requirements )" >> /dev/null;
|
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:
|
# Kann auskommentiert werden, wenn nötige Module schon installiert:
|
||||||
run_check_requirements;
|
check_requirements;
|
||||||
|
|
||||||
# Code testen (unittests):
|
# Code testen (unittests):
|
||||||
run_unittests;
|
run_unittests;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user