18 lines
313 B
Python
18 lines
313 B
Python
import os
|
|
import sys
|
|
|
|
EXPECTED_B_CPP = """
|
|
#include "b.h"
|
|
|
|
type_b return_b_function() {
|
|
return type_b();
|
|
}
|
|
"""
|
|
|
|
with open('b.cpp') as f:
|
|
content = f.read()
|
|
if content != EXPECTED_B_CPP:
|
|
print(f'Actual:\n"""{content}"""')
|
|
print(f'Expected:\n"""{EXPECTED_B_CPP}"""')
|
|
sys.exit(1)
|