Skip to content

Commit 9f371ac

Browse files
Update integration_test.py
1 parent bcb50ec commit 9f371ac

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

integration_test.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,4 +502,17 @@ 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+
def test_utf16_bom(tmpdir):
508+
test_file = os.path.join(tmpdir, "test.cpp")
509+
with open(test_file, 'w') as f:
510+
f.write(b'\xFF\xFE\x00\x3B')
511+
512+
args = [test_file]
513+
514+
exitcode, stdout, stderr = simplecpp(args, cwd=tmpdir)
515+
516+
assert exitcode == 0
517+
assert stderr == ''
518+
assert stdout == '\n'

0 commit comments

Comments
 (0)