예제 #1
0
파일: header.py 프로젝트: ols3er/ezdxf
 def __str__(self) -> str:
     if self.ispoint:
         code, value = self.tag
         s = []
         for coord in value:
             s.append(strtag((code, coord)))
             code += 10
         return "".join(s)
     else:
         return strtag(self.tag)
예제 #2
0
def test_strtag_str():
    assert '  0\nSECTION\n' == strtag((0, 'SECTION'))
예제 #3
0
def test_strtag_float():
    assert ' 10\n3.1415\n' == strtag((10, 3.1415))
예제 #4
0
def test_strtag_int():
    assert '  1\n1\n' == strtag((1, 1))
예제 #5
0
파일: test_tagger.py 프로젝트: hjkatz/ezdxf
 def test_strtag_str(self):
     self.assertEqual('  0\nSECTION\n', strtag((0, 'SECTION')))
예제 #6
0
파일: test_tagger.py 프로젝트: hjkatz/ezdxf
 def test_strtag_float(self):
     self.assertEqual(' 10\n3.1415\n', strtag((10, 3.1415)))
예제 #7
0
파일: test_tagger.py 프로젝트: hjkatz/ezdxf
 def test_strtag_int(self):
     self.assertEqual('  1\n1\n', strtag((1, 1)))
예제 #8
0
def test_strtag_str():
    assert "  0\nSECTION\n" == strtag((0, "SECTION"))
예제 #9
0
def test_strtag_int():
    assert "  1\n1\n" == strtag((1, 1))