Skip to content

Commit 9b26f91

Browse files
Add very long string tests
1 parent 83bacad commit 9b26f91

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/test_records.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
DEVICE_NAME = "SOFT-IOC-TESTS"
2828
TIMEOUT = 5 # Seconds
2929

30+
VERY_LONG_STRING = "This is a fairly long string, the kind that someone " \
31+
"might think to put into a record that can theoretically hold a huge " \
32+
"string and so lets test it and prove that shall we?"
33+
3034

3135
def _clear_records():
3236
# Remove any records created at epicsdbbuilder layer
@@ -238,6 +242,20 @@ def record_values_names(fixture_value):
238242
"ABC",
239243
str,
240244
),
245+
(
246+
"longStringIn_long_str",
247+
builder.longStringIn,
248+
VERY_LONG_STRING,
249+
VERY_LONG_STRING,
250+
str,
251+
),
252+
(
253+
"longStringOut_long_str",
254+
builder.longStringOut,
255+
VERY_LONG_STRING,
256+
VERY_LONG_STRING,
257+
str,
258+
),
241259
(
242260
"longStringIn_bytes",
243261
builder.longStringIn,

0 commit comments

Comments
 (0)