Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(20)  |  Derive(0)  |  Import(2)

src/d/i/diy-lisp-HEAD/tests/test_provided_code.py   diy-lisp(Download)
# -*- coding: utf-8 -*-
from nose.tools import assert_equals, assert_raises_regexp, assert_raises
from diylisp.parser import unparse, find_matching_paren
def test_unparse_atoms():
    assert_equals("123", unparse(123))
    assert_equals("#t", unparse(True))
    assert_equals("#f", unparse(False))
    assert_equals("foo", unparse("foo"))

src/d/i/diy-lisp-HEAD/tests/test_1_parsing.py   diy-lisp(Download)
# -*- coding: utf-8 -*-
from nose.tools import assert_equals, assert_raises_regexp
from diylisp.parser import parse, unparse
def test_expand_crazy_quote_combo():
    """One final test to see that quote expansion works."""
    source = "'(this ''''(makes ''no) 'sense)"
    assert_equals(source, unparse(parse(source)))