Skip to content

Commit 1f92d9c

Browse files
committed
fixed tests and version bump
1 parent 9737c56 commit 1f92d9c

File tree

4 files changed

+56
-39
lines changed

4 files changed

+56
-39
lines changed

docs/Showcase.ipynb

Lines changed: 46 additions & 7 deletions
Large diffs are not rendered by default.

pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
2-
addopts = --doctest-modules
2+
addopts = --ignore-glob=.tests/* --doctest-modules
33
norecursedirs = box
4-
testpaths = tests
4+
testpaths = tests

tests/.tests/.test1.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/test_caro.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import sys
2+
23
from pathlib import Path
34

45
src = str((Path(__file__).parent / "../src").resolve())
56
sys.path.insert(0, src)
67

78
import numpy as np
8-
from fuzzylogic.classes import Domain, Rule, Set
9-
from fuzzylogic.functions import R, S, trapezoid
9+
10+
from fuzzylogic.classes import Domain
11+
from fuzzylogic.classes import Rule
12+
from fuzzylogic.classes import Set
13+
from fuzzylogic.functions import R
14+
from fuzzylogic.functions import S
15+
from fuzzylogic.functions import trapezoid
1016

1117
temp = Domain("Temperatur", -30, 100, res=0.0001) # ,res=0.1)
1218
temp.kalt = S(-10, 30)
@@ -44,11 +50,6 @@
4450
temp.heiß gef.klein gef.groß gef.groß
4551
"""
4652

47-
table = """
48-
hum.dry hum.wet
49-
temp.cold very(motor.slow) motor.slow
50-
temp.hot motor.fast very(motor.fast)
51-
"""
5253
from fuzzylogic.classes import rule_from_table
5354

5455
table_rules = rule_from_table(table, globals())

0 commit comments

Comments
 (0)