diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b13a55b..20b1f07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test on: push: - branches: [ testsuite ] + branches: [ main ] pull_request: branches: [ main ] @@ -27,4 +27,3 @@ jobs: run: pip install pipenv - name: Run Testsuite run: cd logics-py && pipenv install --dev && pipenv run pytest -vvv - diff --git a/README.md b/README.md index ecfb310..1d34994 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@
diff --git a/tests/expressions.lgx b/tests/expressions.lgx index 90406c7..e77e078 100644 --- a/tests/expressions.lgx +++ b/tests/expressions.lgx @@ -1,6 +1,8 @@ 1 + 2 * 3 + 4 #EXPECT:11 + (1 + 2) * (3 + 4) #EXPECT:21 + 3 * "HelloWorld" -#EXPECT:"HelloWorldHelloWorldHelloWorld" \ No newline at end of file +#EXPECT:"HelloWorldHelloWorldHelloWorld" diff --git a/tests/if.lgx b/tests/if.lgx index 9342f73..bd46ac8 100644 --- a/tests/if.lgx +++ b/tests/if.lgx @@ -1,4 +1,4 @@ -"Ja" if 2 + 3 == 5 else "Nein" -#EXPECT:"Ja" -"Ja" if False else "Nein" -#EXPECT:"Nein" +"yes" if 2 + 3 == 5 else "no" +#EXPECT:"yes" +"yes" if False else "no" +#EXPECT:"no" diff --git a/tests/values.lgx b/tests/values.lgx deleted file mode 100644 index 82f69e1..0000000 --- a/tests/values.lgx +++ /dev/null @@ -1,8 +0,0 @@ -123 - -#EXPECT:123 - - # test -1 + 2 * 3 + 4 -#EXPECT:11 - diff --git a/tests/vars.lgx b/tests/vars.lgx index 67dbb6d..ef8fbc9 100644 --- a/tests/vars.lgx +++ b/tests/vars.lgx @@ -1,5 +1,6 @@ #set:i:10 i + i #expect:20 -i * "Jan" -#expect:"JanJanJanJanJanJanJanJanJanJan" + +i * "Logics" +#expect:"LogicsLogicsLogicsLogicsLogicsLogicsLogicsLogicsLogicsLogics"