예제 #1
0
 def test_data_filter_compression(self):
     data = [
         ('d', 'c', 0.0, 1, 1, 1, 1),
         ('d', 'c1', 0.1, 2, 2, 2, 2)
     ]
     assert_equals([('d', 'c', 0.0, ([1], [1], [1]))], G.data(data, compression='c'))
예제 #2
0
 def test_data_filter_delta(self):
     data = [
         ('d', 'c', 0.0, 1, 1, 1, 1),
         ('d1', 'c', 0.0, 2, 2, 2, 2)
     ]
     assert_equals([('d', 'c', 0.0, ([1], [1], [1]))], G.data(data, delta='d'))
예제 #3
0
 def test_data_combine_multiple(self):
     data = [
         ('d', 'c', 0.0, 1, 1, 1, 1),
         ('d', 'c', 0.0, 2, 2, 2, 2),
         ('d1', 'c', 0.0, 1, 1, 1, 1),
         ('d1', 'c', 0.0, 2, 2, 2, 2)
     ]
     assert_equals([('d', 'c', 0.0, ([1, 2], [1, 2], [1, 2])), ('d1', 'c', 0.0, ([1, 2], [1, 2], [1, 2]))], G.data(data))
예제 #4
0
 def test_data_filter_mutate(self):
     data = [
         ('d', 'c', 0.0, 1, 1, 1, 1),
         ('d', 'c', 0.1, 2, 2, 2, 2)
     ]
     assert_equals([('d', 'c', 0.0, ([1], [1], [1]))], G.data(data, mutate=0.0))
예제 #5
0
 def test_data_combine_similar(self):
     data = [
         ('d', 'c', 0.0, 1, 1, 1, 1),
         ('d', 'c', 0.0, 2, 2, 2, 2)
     ]
     assert_equals([('d', 'c', 0.0, ([1, 2], [1, 2], [1, 2]))], G.data(data))