We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed5c5a commit 512881aCopy full SHA for 512881a
data_science_tools/hypothesis_example/get_started.py
@@ -0,0 +1,14 @@
1
+from hypothesis import given
2
+from hypothesis.strategies import text
3
+
4
5
+def tokenize_sentence(sentence: str):
6
+ return sentence.split(' ')
7
8
+def join_sentence(sentence: str):
9
+ return ' '.join(sentence)
10
11
+@given(text())
12
+def test_tokenize_sentence(text: str):
13
14
+ assert join_sentence(tokenize_sentence(text)) == text
statistics/bayesian_example/google analytics.ipynb
0 commit comments