mirror of https://github.com/Nonannet/copapy.git
Fixed readme example
This commit is contained in:
parent
519f5af66c
commit
5cd42f4902
|
|
@ -44,7 +44,7 @@ tg.run()
|
||||||
# Read the results
|
# Read the results
|
||||||
print("Result c:", tg.read_value(c))
|
print("Result c:", tg.read_value(c))
|
||||||
print("Result d:", tg.read_value(d))
|
print("Result d:", tg.read_value(d))
|
||||||
print("Result e:", tg.read_value(d))
|
print("Result e:", tg.read_value(e))
|
||||||
```
|
```
|
||||||
|
|
||||||
## Developer Guide
|
## Developer Guide
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ def test_readme_example():
|
||||||
# Read the results
|
# Read the results
|
||||||
print("Result c:", tg.read_value(c))
|
print("Result c:", tg.read_value(c))
|
||||||
print("Result d:", tg.read_value(d))
|
print("Result d:", tg.read_value(d))
|
||||||
print("Result e:", tg.read_value(d))
|
print("Result e:", tg.read_value(e))
|
||||||
|
|
||||||
# Assertions to verify correctness
|
# Assertions to verify correctness
|
||||||
assert tg.read_value(c) == pytest.approx(0.25 + 0.87 * 2.0, 0.001) # pyright: ignore[reportUnknownMemberType]
|
assert tg.read_value(c) == pytest.approx(0.25 + 0.87 * 2.0, 0.001) # pyright: ignore[reportUnknownMemberType]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue