tools/android/elf_compression/test/compression_script_test.py
def testSegmentsIntersect(self):
    """Tests for SegmentIntersect method of the script."""
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, 0, 3))
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, -1, 1))
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, 2, 4))
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, 1, 2))

    self.assertFalse(compress_section.SegmentsIntersect(0, 3, 4, 6))
    self.assertFalse(compress_section.SegmentsIntersect(0, 3, -1, 0))
    self.assertFalse(compress_section.SegmentsIntersect(0, 3, 3, 5))
Tests for SegmentIntersect method of the script.
Tests for SegmentIntersect method of the script.
Tests for SegmentIntersect method of the script .
def testSegmentsIntersect(self):
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, 0, 3))
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, -1, 1))
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, 2, 4))
    self.assertTrue(compress_section.SegmentsIntersect(0, 3, 1, 2))
    self.assertFalse(compress_section.SegmentsIntersect(0, 3, 4, 6))
    self.assertFalse(compress_section.SegmentsIntersect(0, 3, -1, 0))
    self.assertFalse(compress_section.SegmentsIntersect(0, 3, 3, 5))
def testSegmentsIntersect ( self ) : self . assertTrue ( compress_section . SegmentsIntersect ( 0 , 3 , 0 , 3 ) ) self . assertTrue ( compress_section . SegmentsIntersect ( 0 , 3 , - 1 , 1 ) ) self . assertTrue ( compress_section . SegmentsIntersect ( 0 , 3 , 2 , 4 ) ) self . assertTrue ( compress_section . SegmentsIntersect ( 0 , 3 , 1 , 2 ) ) self . assertFalse ( compress_section . SegmentsIntersect ( 0 , 3 , 4 , 6 ) ) self . assertFalse ( compress_section . SegmentsIntersect ( 0 , 3 , - 1 , 0 ) ) self . assertFalse ( compress_section . SegmentsIntersect ( 0 , 3 , 3 , 5 ) )
Tests for SegmentIntersect method of the script.
Tests for SegmentIntersect method of the script .
"""Tests for SegmentIntersect method of the script."""
self