# Path: pycket/test/testhelper.py
# def execute(p, stdlib=False, extra=""):
#     return run_mod_expr(p, stdlib=stdlib, extra=extra)
# 
# def run_fix(p, v=None, stdlib=False, extra="", equal_huh=False):
#     new = pytest.config.new_pycket
#     if new:
#         return run_expr(p, v, equal_huh=equal_huh)
#     ov = run_mod_expr(p,stdlib=stdlib, extra=extra)
#     assert isinstance(ov, values.W_Fixnum)
#     if v is not None:
#         assert ov.value == v
#     return ov.value
# 
# def run(p, v=None, stdlib=False, extra="", expect_to_fail=False):
#     if pytest.config.new_pycket:
#         return run_expr_result(p, expect_to_fail=expect_to_fail, v=v)
#     return run_mod_expr(p,v=v,stdlib=stdlib, extra=extra)


from pycket.values import *
from pycket.test.testhelper import execute, run_fix, run
        _2 = W_Fixnum(2)
        c =  W_Cons.make(_1, _2)
        #here be whitebox
        assert isinstance(c, W_UnwrappedFixnumCons)
        assert isinstance(c.car(), W_Fixnum)
        assert isinstance(c.cdr(), W_Fixnum)

    def test_flocons(self):
        _1 = W_Flonum(1.2)
        _2 = W_Flonum(2.2)
        c =  W_Cons.make(_1, _2)
        #here be whitebox
        assert isinstance(c, W_UnwrappedFlonumCons)
        assert isinstance(c.car(), W_Flonum)
        assert isinstance(c.cdr(), W_Flonum)

    def test_proper(self):
        assert w_null.is_proper_list()
        _1 = W_Flonum(1.2)
        _2 = W_Flonum(2.2)
        c =  W_Cons.make(_1, _2)
        assert not c.is_proper_list()

        c = W_Cons.make(_1, w_null)
        assert c.is_proper_list()

        c = W_Cons.make(c, c)
        assert c.is_proper_list()

        c =  W_Cons.make(W_Fixnum(1), c)

# Path: pycket/test/testhelper.py
# def execute(p, stdlib=False, extra=""):
#     return run_mod_expr(p, stdlib=stdlib, extra=extra)
# 
# def run_fix(p, v=None, stdlib=False, extra="", equal_huh=False):
#     new = pytest.config.new_pycket
#     if new:
#         return run_expr(p, v, equal_huh=equal_huh)
#     ov = run_mod_expr(p,stdlib=stdlib, extra=extra)
#     assert isinstance(ov, values.W_Fixnum)
#     if v is not None:
#         assert ov.value == v
#     return ov.value
# 
# def run(p, v=None, stdlib=False, extra="", expect_to_fail=False):
#     if pytest.config.new_pycket:
#         return run_expr_result(p, expect_to_fail=expect_to_fail, v=v)
#     return run_mod_expr(p,v=v,stdlib=stdlib, extra=extra)


# Path: pycket/test/test_conses.py
from pycket.values import *
from pycket.test.testhelper import execute, run_fix, run

        _2 = W_Fixnum(2)
        c =  W_Cons.make(_1, _2)
        #here be whitebox
        assert isinstance(c, W_UnwrappedFixnumCons)
        assert isinstance(c.car(), W_Fixnum)
        assert isinstance(c.cdr(), W_Fixnum)

    def test_flocons(self):
        _1 = W_Flonum(1.2)
        _2 = W_Flonum(2.2)
        c =  W_Cons.make(_1, _2)
        #here be whitebox
        assert isinstance(c, W_UnwrappedFlonumCons)
        assert isinstance(c.car(), W_Flonum)
        assert isinstance(c.cdr(), W_Flonum)

    def test_proper(self):
        assert w_null.is_proper_list()
        _1 = W_Flonum(1.2)
        _2 = W_Flonum(2.2)
        c =  W_Cons.make(_1, _2)
        assert not c.is_proper_list()

        c = W_Cons.make(_1, w_null)
        assert c.is_proper_list()

        c = W_Cons.make(c, c)
        assert c.is_proper_list()

        c =  W_Cons.make(W_Fixnum(1), c)

        assert c.is_proper_list()