예제 #1
0
파일: test_custom.py 프로젝트: garfee/blaze
def test_custom_csv_like():
    # A csv-like file is a variable-length strings
    p1 = datashape('n, string')
    p2 = datashape('File')
    assert p1._equal(p2)
예제 #2
0
파일: test_custom.py 프로젝트: garfee/blaze
def test_custom_stream():
    p1 = datashape('Stream, RGBA')
예제 #3
0
파일: test_custom.py 프로젝트: garfee/blaze
def test_custom_type():
    p1 = datashape('800, 600, RGBA')
    assert p1[2] is RGBA

    # We want to build records out of custom type aliases
    p2 = datashape('Record(x=Quaternion, y=Quaternion)')
예제 #4
0
파일: test_custom.py 프로젝트: pelson/blaze
def test_custom_csv_like():
    # A csv-like file is a variable-length strings
    p1 = datashape("n, string")
    p2 = datashape("File")
    assert p1._equal(p2)
예제 #5
0
파일: test_custom.py 프로젝트: pelson/blaze
def test_custom_stream():
    p1 = datashape("Stream, RGBA")
예제 #6
0
파일: test_custom.py 프로젝트: pelson/blaze
def test_custom_type():
    p1 = datashape("800, 600, RGBA")
    assert p1[2] is RGBA

    # We want to build records out of custom type aliases
    p2 = datashape("Record(x=Quaternion, y=Quaternion)")