<commit_before>import rx
from rx.testing import marbles

def test_alias():
    assert rx.Observable.from_string == rx.Observable.from_marbles

def test_from_to_marbles():
    for marbles in '0-1-(10)-|', '0|', '(10)-(20)|', 'abc|':
        stream = rx.Observable.from_string(marbles)
        assert stream.to_blocking().to_marbles() == marbles



<commit_msg>evaluating "0" in marble strings (plus a first test for the testing module)<commit_after>import rx
from rx.testing import marbles

def test_alias():
    assert rx.Observable.from_string == rx.Observable.from_marbles

def test_from_to_marbles():
    for marbles in '0-1-(10)-|', '0|', '(10)-(20)|', '(abc)|':
        #from nose.tools import set_trace; set_trace()
        stream = rx.Observable.from_string(marbles)
        assert stream.to_blocking().to_marbles() == marbles




{'fraction_non_alphanumeric': 0.14456391875746716, 'fraction_numerical': 0.022700119474313024, 'mean_word_length': 4.017964071856287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2629265', 'n_tokens_mistral': 295, 'n_tokens_neox': 278, 'n_words': 67}