mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 21:12:22 +00:00
Add string decode/encode api
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import ifcopenshell
|
||||
|
||||
|
||||
def test_spf_strings_can_be_encoded_and_decoded():
|
||||
decoded = "Café's \\"
|
||||
encoded = r"'Caf\X2\00E9\X0\''s \\'"
|
||||
|
||||
assert ifcopenshell.encode_spf_string(decoded) == encoded
|
||||
assert ifcopenshell.decode_spf_string(encoded) == decoded
|
||||
|
||||
|
||||
def test_skip_over_non_entity_instance():
|
||||
data = """
|
||||
ISO-10303-21;
|
||||
|
||||
Reference in New Issue
Block a user