mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-21 07:40:47 +00:00
17 lines
660 B
Text
17 lines
660 B
Text
module []
|
|
|
|
# Regression test: String literals of length >= 24 (big strings) must work
|
|
# correctly with equality comparisons. This tests the single-segment string
|
|
# fast path in str_collect.
|
|
|
|
# Exactly 24 characters - this is a "big string" (>= SMALL_STRING_SIZE)
|
|
expect ("123456789012345678901234" != "")
|
|
expect ("123456789012345678901234" == "123456789012345678901234")
|
|
expect ("" != "123456789012345678901234")
|
|
|
|
# 25 characters - definitely a big string
|
|
expect ("1234567890123456789012345" != "")
|
|
expect ("1234567890123456789012345" == "1234567890123456789012345")
|
|
|
|
# Compare two big strings
|
|
expect ("123456789012345678901234" != "123456789012345678901235")
|