Skip to content

Commit 72c119c

Browse files
Update integration_test.py
1 parent ae1f0fb commit 72c119c

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

integration_test.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,4 +502,18 @@ def test_define(record_property, tmpdir): # #589
502502

503503
assert exitcode == 0
504504
assert stderr == "test.cpp:1: syntax error: failed to expand 'TEST_P', Invalid ## usage when expanding 'TEST_P': Unexpected token ')'\n"
505-
assert stdout == '\n'
505+
assert stdout == '\n'
506+
507+
508+
def test_utf16_bom(tmpdir):
509+
test_file = os.path.join(tmpdir, "test.cpp")
510+
with open(test_file, 'w') as f:
511+
f.write(b'\xFF\xFE\x00\x3B')
512+
513+
args = [test_file]
514+
515+
exitcode, stdout, stderr = simplecpp(args, cwd=tmpdir)
516+
517+
assert exitcode == 0
518+
assert stderr == ''
519+
assert stdout == '\n'

0 commit comments

Comments
 (0)